Skip to content

Commit

Permalink
Record the filename of files that are missing SourceCodeInfo (#3545)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebilling authored Aug 25, 2023
1 parent a7dbd77 commit 81b66d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protoc-gen-openapiv2/internal/genopenapi/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -2330,7 +2330,7 @@ func enumValueProtoComments(reg *descriptor.Registry, enum *descriptor.Enum) str

func protoComments(reg *descriptor.Registry, file *descriptor.File, outers []string, typeName string, typeIndex int32, fieldPaths ...int32) string {
if file.SourceCodeInfo == nil {
fmt.Fprintln(os.Stderr, "descriptor.File should not contain nil SourceCodeInfo")
fmt.Fprintln(os.Stderr, file.GetName(), "descriptor.File should not contain nil SourceCodeInfo")
return ""
}

Expand Down

0 comments on commit 81b66d9

Please sign in to comment.