Skip to content

Commit

Permalink
Update errors.go
Browse files Browse the repository at this point in the history
  • Loading branch information
deankarn authored Sep 27, 2020
1 parent 2a5412a commit d9e95d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ func (fe *fieldError) Error() string {
// Translate returns the FieldError's translated error
// from the provided 'ut.Translator' and registered 'TranslationFunc'
//
// NOTE: is not registered translation can be found it returns the same
// as calling fe.Error()
// NOTE: if no registered translation can be found, it returns the original
// untranslated error message.
func (fe *fieldError) Translate(ut ut.Translator) string {

m, ok := fe.v.transTagFunc[ut]
Expand Down

0 comments on commit d9e95d5

Please sign in to comment.