diff --git a/lib/net.js b/lib/net.js index 35eb84d4988..7b9d0de553e 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()) {