Permalink
Browse files

Added more error handling

  • Loading branch information...
1 parent 09a3eb9 commit b1f6830998f460dcc7e194d54d0f208f4b977154 @kriszyp kriszyp committed Aug 23, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 engines/node/http-client.js
@@ -94,6 +94,9 @@ exports.request = function(originalRequest){
deferred.resolve(response);
clearTimeout(timeout);
});
+ req.on('error', function(e) {
+ deferred.reject(e);
+ });
if(request.body){
return when(request.body.forEach(function(block){
req.write(block);

0 comments on commit b1f6830

Please sign in to comment.