From 827b9c5f1fa1ec5279658ee7bce141c4ed95d0b0 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 23 Aug 2011 14:29:46 -0700 Subject: [PATCH] net: fix throw error Thanks Tobi --- lib/net.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net.js b/lib/net.js index 35eb84d498..7b9d0de553 100644 --- a/lib/net.js +++ b/lib/net.js @@ -1053,7 +1053,7 @@ Server.prototype.listen = function() { if (err.errno == ENOENT) { self._doListen(path); } else { - throw r; + throw err; } } else { if (!r.isSocket()) {