Skip to content

Commit 81b66d9

Browse files
author
Eric Billingsley
authored
Record the filename of files that are missing SourceCodeInfo (#3545)
1 parent a7dbd77 commit 81b66d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

protoc-gen-openapiv2/internal/genopenapi/template.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2330,7 +2330,7 @@ func enumValueProtoComments(reg *descriptor.Registry, enum *descriptor.Enum) str
23302330

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

0 commit comments

Comments
 (0)