Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
thefourtheye committed Mar 26, 2016
1 parent 8b2e437 commit 41feaa8
Show file tree
Hide file tree
Showing 3 changed files with 180 additions and 104 deletions.
2 changes: 1 addition & 1 deletion lib/_tls_wrap.js
Expand Up @@ -762,7 +762,7 @@ function Server(/* [options], listener */) {
var timeout = options.handshakeTimeout || (120 * 1000);

if (typeof timeout !== 'number') {
throw new TypeError('"handshakeTimeout" option must be a number');
throw new TypeError('handshakeTimeout must be a number');
}

if (self.sessionTimeout) {
Expand Down

0 comments on commit 41feaa8

Please sign in to comment.