Skip to content

Commit 001e88f

Browse files
committed
crypto: improve error messages
Introduce a new MACRO to check if the data is a String object and update existing MACROs to include the actual object description to be printed in case of an error. PR-URL: #3100
1 parent be68b68 commit 001e88f

File tree

2 files changed

+145
-104
lines changed

2 files changed

+145
-104
lines changed

lib/_tls_wrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ function Server(/* [options], listener */) {
762762
var timeout = options.handshakeTimeout || (120 * 1000);
763763

764764
if (typeof timeout !== 'number') {
765-
throw new TypeError('"handshakeTimeout" option must be a number');
765+
throw new TypeError('handshakeTimeout must be a number');
766766
}
767767

768768
if (self.sessionTimeout) {

0 commit comments

Comments
 (0)