From 2cb01f0d1270e6ecd2902184e6e801b22206ef71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Tue, 4 Sep 2018 15:16:08 +0200 Subject: [PATCH] errors: decapitalize PBKDF2 error PR-URL: https://github.com/nodejs/node/pull/22687 Refs: https://github.com/nodejs/node/pull/20816 Reviewed-By: James M Snell Reviewed-By: Rich Trott Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Ruben Bridgewater Reviewed-By: Anna Henningsen Reviewed-By: Trivikram Kamat --- lib/internal/errors.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/internal/errors.js b/lib/internal/errors.js index 87a412dbf8a8d8..9ecad0aee920eb 100644 --- a/lib/internal/errors.js +++ b/lib/internal/errors.js @@ -503,8 +503,7 @@ E('ERR_CRYPTO_HASH_FINALIZED', 'Digest already called', Error); E('ERR_CRYPTO_HASH_UPDATE_FAILED', 'Hash update failed', Error); E('ERR_CRYPTO_INVALID_DIGEST', 'Invalid digest: %s', TypeError); E('ERR_CRYPTO_INVALID_STATE', 'Invalid state for operation %s', Error); -// TODO(bnoordhuis) Decapitalize: s/PBKDF2 Error/PBKDF2 error/ -E('ERR_CRYPTO_PBKDF2_ERROR', 'PBKDF2 Error', Error); +E('ERR_CRYPTO_PBKDF2_ERROR', 'PBKDF2 error', Error); E('ERR_CRYPTO_SCRYPT_INVALID_PARAMETER', 'Invalid scrypt parameter', Error); E('ERR_CRYPTO_SCRYPT_NOT_SUPPORTED', 'Scrypt algorithm not supported', Error); // Switch to TypeError. The current implementation does not seem right.