From 35cbe1ad859fc51b369693e8665483a0ecb6cb73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Wed, 31 Aug 2022 10:20:24 +0200 Subject: [PATCH] crypto: use actual option name in error message oaep_label is the name of the C++ variable. Use oaepLabel instead, which is the name of the documented option. PR-URL: https://github.com/nodejs/node/pull/44455 Reviewed-By: Filip Skokan Reviewed-By: theanarkh Reviewed-By: Luigi Pinca --- src/crypto/crypto_cipher.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/crypto_cipher.cc b/src/crypto/crypto_cipher.cc index 44b54363dd1ec2..397f248f2ca61a 100644 --- a/src/crypto/crypto_cipher.cc +++ b/src/crypto/crypto_cipher.cc @@ -1063,7 +1063,7 @@ void PublicKeyCipher::Cipher(const FunctionCallbackInfo& args) { ArrayBufferOrViewContents oaep_label( !args[offset + 3]->IsUndefined() ? args[offset + 3] : Local()); if (UNLIKELY(!oaep_label.CheckSizeInt32())) - return THROW_ERR_OUT_OF_RANGE(env, "oaep_label is too big"); + return THROW_ERR_OUT_OF_RANGE(env, "oaepLabel is too big"); std::unique_ptr out; if (!Cipher(