Skip to content

Commit 1bf11c9

Browse files
Includes Error in FieldError's interface
1 parent ea924ce commit 1bf11c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

errors.go

+3
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ type FieldError interface {
155155
// NOTE: if no registered translator can be found it returns the same as
156156
// calling fe.Error()
157157
Translate(ut ut.Translator) string
158+
159+
// Error returns the FieldError's message
160+
Error() string
158161
}
159162

160163
// compile time interface checks

0 commit comments

Comments
 (0)