Merge pull request #666 from xy-planning-network/patch

Includes Error in FieldError's interface
pull/671/head
Dean Karn 4 years ago committed by GitHub
commit 4cd2e40256
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      errors.go

@ -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

Loading…
Cancel
Save