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:
+2
-2
@@ -114,7 +114,7 @@ func (v *UserQueryInput) UnmarshalJSON(b []byte) error {
|
||||
src, dst)
|
||||
if err != nil {
|
||||
return fmt.Errorf(
|
||||
"Unable to unmarshal UserQueryInput.Birthdate: %w", err)
|
||||
"unable to unmarshal UserQueryInput.Birthdate: %w", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -163,7 +163,7 @@ func (v *UserQueryInput) __premarshalJSON() (*__premarshalUserQueryInput, error)
|
||||
&src)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf(
|
||||
"Unable to marshal UserQueryInput.Birthdate: %w", err)
|
||||
"unable to marshal UserQueryInput.Birthdate: %w", err)
|
||||
}
|
||||
}
|
||||
return &retval, nil
|
||||
|
||||
Reference in New Issue
Block a user