A better error msg

Change ErrInvalidKey to ErrInvalidKeyType
This commit is contained in:
Yuri 2017-04-01 16:04:41 +08:00 committed by GitHub
parent 2268707a8f
commit c1d75b01d5
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
}