Skip to content

Commit 8f12d81

Browse files
tniessenTrott
andcommitted
Update lib/internal/errors.js
Co-Authored-By: Rich Trott <rtrott@gmail.com>
1 parent e1ada5b commit 8f12d81

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/internal/errors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ E('ERR_CRYPTO_SCRYPT_NOT_SUPPORTED', 'Scrypt algorithm not supported', Error);
755755
// Switch to TypeError. The current implementation does not seem right.
756756
E('ERR_CRYPTO_SIGN_KEY_REQUIRED', 'No key provided to sign', Error);
757757
E('ERR_CRYPTO_TIMING_SAFE_EQUAL_LENGTH',
758-
'Input buffers must have the same number of bytes', RangeError);
758+
'Input buffers must have the same byte length', RangeError);
759759
E('ERR_DNS_SET_SERVERS_FAILED', 'c-ares failed to set servers: "%s" [%s]',
760760
Error);
761761
E('ERR_DOMAIN_CALLBACK_NOT_AVAILABLE',

test/sequential/test-crypto-timing-safe-equal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ common.expectsError(
3737
{
3838
code: 'ERR_CRYPTO_TIMING_SAFE_EQUAL_LENGTH',
3939
type: RangeError,
40-
message: 'Input buffers must have the same number of bytes'
40+
message: 'Input buffers must have the same byte length'
4141
}
4242
);
4343

0 commit comments

Comments
 (0)