How to handle etimedout error on this call ?
var remotePath = \"myremoteurltocopy\" var localStream = fs.createWriteStream(\"myfil\");; var out = r
We could look at error object for a property code that mentions the possible system error and in cases of ETIMEDOUT where a network call fails, act accordingly.
code
ETIMEDOUT
if (err.code === 'ETIMEDOUT') { console.log('My dish error: ', util.inspect(err, { showHidden: true, depth: 2 })); }