Skip to content

Commit

Permalink
fix: typo in JOSENotSupported error when x509 certs are not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Jan 7, 2020
1 parent 5ade37c commit bb58c9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/help/key_object.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ if (!keyObjectSupported) {
label = 'RSA PUBLIC KEY'
break
case '-----BEGIN CERTIFICATE-----':
throw new errors.JOSENotSupported('X.509 certificates are supported in your Node.js runtime version')
throw new errors.JOSENotSupported('X.509 certificates are not supported in your Node.js runtime version')
default:
throw new TypeError('unknown/unsupported PEM type')
}
Expand Down

0 comments on commit bb58c9c

Please sign in to comment.