Merge pull request #209 from zhyuri/patch-1

A better error msg
This commit is contained in:
Dave Grijalva 2018-03-08 10:34:53 -08:00 committed by GitHub
commit d6bbf373d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -90,5 +90,5 @@ func (m *SigningMethodHMAC) Sign(signingString string, key interface{}) (string,
return EncodeSegment(hasher.Sum(nil)), nil
}
return "", ErrInvalidKey
return "", ErrInvalidKeyType
}