net_legacy: Fix throw typo
authorRyan Dahl <ry@tinyclouds.org>
Tue, 23 Aug 2011 21:24:50 +0000 (14:24 -0700)
committerRyan Dahl <ry@tinyclouds.org>
Tue, 23 Aug 2011 21:27:50 +0000 (14:27 -0700)
Thanks Tobi

lib/net_legacy.js

index 7f24e6b..d9c47ba 100644 (file)
@@ -1073,7 +1073,7 @@ Server.prototype.listen = function() {
         if (err.errno == ENOENT) {
           self._doListen(path);
         } else {
-          throw r;
+          throw err;
         }
       } else {
         if (!r.isSocket()) {