Skip to content

Commit

Permalink
Includes Error in FieldError's interface
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLarsKetch committed Sep 16, 2020
1 parent ea924ce commit 1bf11c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions errors.go
Original file line number Diff line number Diff line change
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 1bf11c9

Please sign in to comment.