aboutsummaryrefslogtreecommitdiff
path: root/lib/_tls_wrap.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/_tls_wrap.js')
-rw-r--r--lib/_tls_wrap.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/_tls_wrap.js b/lib/_tls_wrap.js
index 41dd001bd6..686e109ca3 100644
--- a/lib/_tls_wrap.js
+++ b/lib/_tls_wrap.js
@@ -908,7 +908,8 @@ function Server(options, listener) {
this[kSNICallback] = options.SNICallback;
if (typeof this[kHandshakeTimeout] !== 'number') {
- throw new ERR_INVALID_ARG_TYPE('timeout', 'number');
+ throw new ERR_INVALID_ARG_TYPE(
+ 'options.handshakeTimeout', 'number', options.handshakeTimeout);
}
if (this.sessionTimeout) {