Skip to content

Commit

Permalink
Fix incorrectly formatted error string
Browse files Browse the repository at this point in the history
  • Loading branch information
breml committed Aug 4, 2022
1 parent 046f531 commit c2b4b96
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 c2b4b96

Please sign in to comment.