Skip to content

Commit 937ccdf

Browse files
committed
Edited lib/node/index.js via GitHub
1 parent 83ebfde commit 937ccdf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/node/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/*!
32
* superagent
43
* Copyright (c) 2011 TJ Holowaychuk <tj@vision-media.ca>
@@ -570,7 +569,7 @@ Request.prototype.request = function(){
570569

571570
// expose events
572571
req.on('drain', function(){ self.emit('drain'); });
573-
req.on('error', function(error){ self.emit('error', error); });
572+
req.on('error', function(err){ self.emit('error', err); });
574573

575574
return req;
576575
};

0 commit comments

Comments
 (0)