From 9625faab8574cb37829cab9bfb1ecea1f533f365 Mon Sep 17 00:00:00 2001 From: mscdex Date: Wed, 24 Jul 2013 08:14:39 -0400 Subject: [PATCH] Connection: reword timeout error message --- lib/Connection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Connection.js b/lib/Connection.js index c7a94b3..fb5d86e 100644 --- a/lib/Connection.js +++ b/lib/Connection.js @@ -215,7 +215,7 @@ Connection.prototype.connect = function() { }); this._tmrConn = setTimeout(function() { - var err = new Error('Connection timed out'); + var err = new Error('Timed out while connecting to server'); err.source = 'timeout'; self.emit('error', err); socket.destroy();