lepture/node-scp2 — pull request #6 by cliffano (2014-01-23 12:27:21+00:00)
Title: Handle error, pass to callback

This allows the client of scp2 module to handle error accordingly.

Otherwise it breaks:

events.js:72
throw er; // Unhandled 'error' event
^
Error: connect ETIMEDOUT
at errnoException (net.js:901:11)
at Object.afterConnect [as oncomplete] (net.js:892:19)