Skip to content

Commit 4899c32

Browse files
committed
reword error
1 parent dd9e4c4 commit 4899c32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jwk/rsa.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func (k *rsaPrivateKey) FromRaw(rawKey *rsa.PrivateKey) error {
2626
l := len(rawKey.Primes)
2727

2828
if l < 0 /* I know, I'm being paranoid */ || l > 2 {
29-
return fmt.Errorf(`invalid number of primes in rsa.PrivateKey: need 1 or 2, got %d`, len(rawKey.Primes))
29+
return fmt.Errorf(`invalid number of primes in rsa.PrivateKey: need 0 to 2, but got %d`, len(rawKey.Primes))
3030
}
3131

3232
if l > 0 {

0 commit comments

Comments
 (0)