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:
Lucas Bremgartner
2022-08-04 14:57:45 -07:00
committed by GitHub
parent 046f531314
commit c0510ff54a
24 changed files with 151 additions and 151 deletions
@@ -63,7 +63,7 @@ func (v *CustomMarshalUsersBornOnUser) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal CustomMarshalUsersBornOnUser.Birthdate: %w", err)
"unable to unmarshal CustomMarshalUsersBornOnUser.Birthdate: %w", err)
}
}
}
@@ -97,7 +97,7 @@ func (v *CustomMarshalUsersBornOnUser) __premarshalJSON() (*__premarshalCustomMa
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal CustomMarshalUsersBornOnUser.Birthdate: %w", err)
"unable to marshal CustomMarshalUsersBornOnUser.Birthdate: %w", err)
}
}
return &retval, nil
@@ -137,7 +137,7 @@ func (v *__CustomMarshalInput) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal __CustomMarshalInput.Date: %w", err)
"unable to unmarshal __CustomMarshalInput.Date: %w", err)
}
}
}
@@ -168,7 +168,7 @@ func (v *__CustomMarshalInput) __premarshalJSON() (*__premarshal__CustomMarshalI
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal __CustomMarshalInput.Date: %w", err)
"unable to marshal __CustomMarshalInput.Date: %w", err)
}
}
return &retval, nil