From 1bf11c92993341053af72a7a99d6d9a76425dc1e Mon Sep 17 00:00:00 2001 From: David Ketch Date: Wed, 16 Sep 2020 15:14:29 -0500 Subject: [PATCH] Includes Error in FieldError's interface --- errors.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/errors.go b/errors.go index 86420b9..9682052 100644 --- a/errors.go +++ b/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