Skip to content

Commit

Permalink
tweak docstring for FieldError#Error
Browse files Browse the repository at this point in the history
  • Loading branch information
Integralist committed Dec 21, 2020
1 parent 8adf1e8 commit 16eb5b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastly/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type FieldError struct {
// backend will just reject the call, thus being a waste of network resources).
//
// Because of this we allow modifying the error message to reflect whether the
// missing field was either 'required' or just missing a value.
// missing field was either 'required' or there was some other error noticed.
func (e *FieldError) Error() string {
if e.message != "" {
return fmt.Sprintf("problem with field '%s': %s", e.kind, e.message)
Expand Down

0 comments on commit 16eb5b9

Please sign in to comment.