From bb58c9ce52e807ca4cfad6bcbf1ab96b91778b1f Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Tue, 7 Jan 2020 21:03:00 +0100 Subject: [PATCH] fix: typo in JOSENotSupported error when x509 certs are not supported --- lib/help/key_object.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/help/key_object.js b/lib/help/key_object.js index 24ed3bdec9..b1d3bcde5d 100644 --- a/lib/help/key_object.js +++ b/lib/help/key_object.js @@ -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') }