Skip to content

Commit

Permalink
Update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
bufdev committed May 15, 2024
1 parent 407122e commit 0f4724a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions private/bufpkg/bufmodule/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,10 @@ func (n *NoProtoFilesError) Error() string {
return ""
}
var builder strings.Builder
_, _ = builder.WriteString(`module `)
_, _ = builder.WriteString(`"`)
// Writing even if the error is malformed via d.OpaqueID being empty.
_, _ = builder.WriteString(n.OpaqueID)
_, _ = builder.WriteString(` had no .proto files`)
_, _ = builder.WriteString(`" had no .proto files`)
return builder.String()
}

Expand Down

0 comments on commit 0f4724a

Please sign in to comment.