Skip to content

Commit

Permalink
crypto: improve error messages
Browse files Browse the repository at this point in the history
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
  • Loading branch information
thefourtheye committed Mar 25, 2016
1 parent be68b68 commit 001e88f
Show file tree
Hide file tree
Showing 2 changed files with 145 additions and 104 deletions.
2 changes: 1 addition & 1 deletion lib/_tls_wrap.js
Original file line number Diff line number Diff line change
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
Loading

0 comments on commit 001e88f

Please sign in to comment.