Skip to content

Commit

Permalink
Added more error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
kriszyp committed Aug 23, 2011
1 parent 09a3eb9 commit b1f6830
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions engines/node/http-client.js
Expand Up @@ -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);
Expand Down

0 comments on commit b1f6830

Please sign in to comment.