Enhancement: make error message customizable
andig opened this issue · 3 comments
andig commented
All attempts fail
doesn't seem entirely go-ish: errors should (?) be lower case and read failed
instead of fail
.
Happy to do a quick PR if that helps.
JaSei commented
Hi, @andig, thanks for your comment. I will be happy when you send me PR.
Please can you send me too best practice for the go-ish error? Thanks
andig commented
@JaSei it would be great to
- fix the translation
- return error message in go style
- return all errors individually similar to https://github.com/go-playground/validator/blob/master/errors.go#L37
If you'd accept a PR I'd be happy to provide one.
andig commented
Excuse me. I'm closing this one- seems the wrapped errors are already available. All that would need to be fixed is imho
all attempts failed
as error message