diff --git a/lib/soda/client.js b/lib/soda/client.js index cbd3e99..a8dea41 100755 --- a/lib/soda/client.js +++ b/lib/soda/client.js @@ -129,6 +129,10 @@ Client.prototype.command = function(cmd, args, fn){ return this; }); + req.on('error', function(err) { + fn(err); + }); + if(postData) { req.write(postData); }