Skip to content

Commit e4f02bd

Browse files
author
Shigeki Ohtsu
committed
tls: add assert msg options.checkServerIdentity
1 parent 1a999d7 commit e4f02bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/_tls_wrap.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,8 @@ exports.connect = function(/* [port, host], options, cb */) {
888888
if (!options.keepAlive)
889889
options.singleUse = true;
890890

891-
assert(typeof options.checkServerIdentity === 'function');
891+
assert(typeof options.checkServerIdentity === 'function',
892+
'options.checkServerIdentity is not a function');
892893
assert(typeof options.minDHSize === 'number',
893894
'options.minDHSize is not a number: ' + options.minDHSize);
894895
assert(options.minDHSize > 0,

0 commit comments

Comments
 (0)