mirror of https://github.com/golang-jwt/jwt.git
Merge pull request #15 from cryptix/patch-1
jwt.ValidationError didn't not implement error
This commit is contained in:
commit
ad761c1872
2
jwt.go
2
jwt.go
|
@ -172,7 +172,7 @@ type ValidationError struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validation error is an error type
|
// Validation error is an error type
|
||||||
func (e *ValidationError) Error() string {
|
func (e ValidationError) Error() string {
|
||||||
if e.err == "" {
|
if e.err == "" {
|
||||||
return "Token is invalid"
|
return "Token is invalid"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue