net: fix error details in connect()
authorcjihrig <cjihrig@gmail.com>
Mon, 19 Jan 2015 18:02:18 +0000 (13:02 -0500)
committercjihrig <cjihrig@gmail.com>
Mon, 19 Jan 2015 20:25:52 +0000 (15:25 -0500)
commite2558f02dfb671fc74f5768d4401a826efb5c117
tree06d358b9f24f946c6f55307146a10ad7d612b9ee
parent4af5746993a6b91c88973b6debcee19c6cd35185
net: fix error details in connect()

3ac494195319efb9c923c0ee89b6e0f2617d53ef introduced a
bug as it attempted to access properties of an
undefined variable. This commit cleans up the offending
code.

Fixes: https://github.com/iojs/io.js/issues/510
PR-URL: https://github.com/iojs/io.js/pull/514
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
lib/net.js