-
Notifications
You must be signed in to change notification settings - Fork 321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please add err.types #64
Comments
A further improvement aside from splitting ValidationError into derived types would be making them 1.13 compliant (that is, compatible with the Is/As and Unwrap errors package methods). That would make the refactor worth it and allow for error type assertions in a more idiomatic way than type swtiching |
I agree, I would also like to go the 1.13 error types route. |
I have trouble with this too. It seems like the fix is simple: add an func (e ValidationError) Unwrap() error {
return e.Inner
} |
Fixed by #234 |
Migrated from dgrijalva/jwt-go#375:
The text was updated successfully, but these errors were encountered: