Skip to content

Commit fbb3cd6

Browse files
committed
sends error object through error callback
1 parent 87ddb85 commit fbb3cd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/node/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ Request.prototype.request = function(){
570570

571571
// expose events
572572
req.on('drain', function(){ self.emit('drain'); });
573-
req.on('error', function(){ self.emit('error'); });
573+
req.on('error', function(error){ self.emit('error', error); });
574574

575575
return req;
576576
};

0 commit comments

Comments
 (0)