summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSakthipriyan Vairamani <thechargingvolcano@gmail.com>2015-09-28 11:33:33 +0530
committerSakthipriyan Vairamani <thechargingvolcano@gmail.com>2016-03-26 23:46:32 +0530
commit41feaa89e0f15c7d713818065af07a552728cd2e (patch)
tree6c1e09103b26844a86947416e76ab71d072bcc6d /lib
parent8b2e437fdb47370acfb6149e6454851d5aff56fa (diff)
downloadandroid-node-v8-41feaa89e0f15c7d713818065af07a552728cd2e.tar.gz
android-node-v8-41feaa89e0f15c7d713818065af07a552728cd2e.tar.bz2
android-node-v8-41feaa89e0f15c7d713818065af07a552728cd2e.zip
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: https://github.com/nodejs/node/pull/3100 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/_tls_wrap.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_tls_wrap.js b/lib/_tls_wrap.js
index b7aa265dae..f4c8d54e3d 100644
--- a/lib/_tls_wrap.js
+++ b/lib/_tls_wrap.js
@@ -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) {