Skip to content

Commit 7100bae

Browse files
tniessenjuanarbol
authored andcommitted
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: #44455 Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: theanarkh <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 6be761e commit 7100bae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crypto/crypto_cipher.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ void PublicKeyCipher::Cipher(const FunctionCallbackInfo<Value>& args) {
10521052
if (!args[offset + 3]->IsUndefined()) {
10531053
oaep_label = ArrayBufferOrViewContents<unsigned char>(args[offset + 3]);
10541054
if (UNLIKELY(!oaep_label.CheckSizeInt32()))
1055-
return THROW_ERR_OUT_OF_RANGE(env, "oaep_label is too big");
1055+
return THROW_ERR_OUT_OF_RANGE(env, "oaepLabel is too big");
10561056
}
10571057

10581058
std::unique_ptr<BackingStore> out;

0 commit comments

Comments
 (0)