Skip to content

Commit

Permalink
Fix incorrectly formatted error string (#213)
Browse files Browse the repository at this point in the history
Follow best practices from Go Review Comments:
https://github.com/golang/go/wiki/CodeReviewComments#error-strings

Closes: #202
  • Loading branch information
breml authored Aug 4, 2022
1 parent 046f531 commit c0510ff
Show file tree
Hide file tree
Showing 24 changed files with 151 additions and 151 deletions.
2 changes: 1 addition & 1 deletion generate/marshal.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (v *{{.GoName}}) __premarshalJSON() (*__premarshal{{.GoName}}, error) {
{{if not $field.GoType.IsPointer}}&{{end}}src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal {{$.GoName}}.{{$field.Selector}}: %w", err)
"unable to marshal {{$.GoName}}.{{$field.Selector}}: %w", err)
}
{{if $field.GoType.IsPointer -}}
}{{/* end if src != nil */}}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c0510ff

Please sign in to comment.