Browse files

Handles errors that come through in lib/client this.send

  • Loading branch information...
1 parent 31b78a0 commit abc1e55710833a5f3e467a6ac7d55788874fd1e1 @grobot grobot committed Jan 7, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/client.js
View
3 lib/client.js
@@ -84,6 +84,7 @@ var methods = function() {
});
req.send(function(err, res) {
+ if(err) return failure_cb(err);
var body = '';
res.on('data', function (chunk) {
body += chunk;
@@ -107,4 +108,4 @@ var methods = function() {
};
};
-methods.call(Client.prototype);
+methods.call(Client.prototype);

0 comments on commit abc1e55

Please sign in to comment.