Skip to content

Commit

Permalink
Merge pull request #666 from xy-planning-network/patch
Browse files Browse the repository at this point in the history
Includes Error in FieldError's interface
  • Loading branch information
deankarn committed Sep 27, 2020
2 parents ace513e + 1bf11c9 commit 4cd2e40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions errors.go
Expand Up @@ -155,6 +155,9 @@ type FieldError interface {
// NOTE: if no registered translator can be found it returns the same as
// calling fe.Error()
Translate(ut ut.Translator) string

// Error returns the FieldError's message
Error() string
}

// compile time interface checks
Expand Down

0 comments on commit 4cd2e40

Please sign in to comment.