Skip to content

Commit 827b9c5

Browse files
committed
net: fix throw error
Thanks Tobi
1 parent 509a676 commit 827b9c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,7 @@ Server.prototype.listen = function() {
10531053
if (err.errno == ENOENT) {
10541054
self._doListen(path);
10551055
} else {
1056-
throw r;
1056+
throw err;
10571057
}
10581058
} else {
10591059
if (!r.isSocket()) {

0 commit comments

Comments
 (0)