Skip to content

Commit

Permalink
reword error
Browse files Browse the repository at this point in the history
  • Loading branch information
lestrrat committed Apr 8, 2022
1 parent dd9e4c4 commit 4899c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jwk/rsa.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func (k *rsaPrivateKey) FromRaw(rawKey *rsa.PrivateKey) error {
l := len(rawKey.Primes)

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

if l > 0 {
Expand Down

0 comments on commit 4899c32

Please sign in to comment.