Fix incorrectly formatted error string (#213)
Follow best practices from Go Review Comments: https://github.com/golang/go/wiki/CodeReviewComments#error-strings Closes: #202
This commit is contained in:
@@ -139,7 +139,7 @@ func (v *{{.GoName}}) UnmarshalJSON(b []byte) error {
|
||||
src, {{if $field.GoType.IsPointer}}*{{end}}dst)
|
||||
if err != nil {
|
||||
return fmt.Errorf(
|
||||
"Unable to unmarshal {{$.GoName}}.{{$field.GoName}}: %w", err)
|
||||
"unable to unmarshal {{$.GoName}}.{{$field.GoName}}: %w", err)
|
||||
}
|
||||
}
|
||||
{{range $i := intRange $field.GoType.SliceDepth -}}
|
||||
|
||||
Reference in New Issue
Block a user