diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2018-03-19 14:18:50 +0100 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2018-03-25 03:01:45 +0200 |
commit | b38c81cb449a822ab45e6caa210d070b91a59836 (patch) | |
tree | eb6fe75fa90a4f8829277a5c2382aaa8a958abf9 /test/parallel/test-tls-basic-validations.js | |
parent | acc3c770e7717673ee87fa37076fc50fcb91e4ea (diff) | |
download | android-node-v8-b38c81cb449a822ab45e6caa210d070b91a59836.tar.gz android-node-v8-b38c81cb449a822ab45e6caa210d070b91a59836.tar.bz2 android-node-v8-b38c81cb449a822ab45e6caa210d070b91a59836.zip |
lib: improve error handling
This improves the error handling for a couple cases where the
received value would not have been handled so far or where the name
is wrong etc.
PR-URL: https://github.com/nodejs/node/pull/19445
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'test/parallel/test-tls-basic-validations.js')
-rw-r--r-- | test/parallel/test-tls-basic-validations.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-tls-basic-validations.js b/test/parallel/test-tls-basic-validations.js index a2f7c8d461..74d56546eb 100644 --- a/test/parallel/test-tls-basic-validations.js +++ b/test/parallel/test-tls-basic-validations.js @@ -26,8 +26,8 @@ common.expectsError(() => tls.createServer({ handshakeTimeout: 'abcd' }), { code: 'ERR_INVALID_ARG_TYPE', type: TypeError, - message: 'The "timeout" argument must ' + - 'be of type number' + message: 'The "options.handshakeTimeout" property must ' + + 'be of type number. Received type string' } ); |