Skip to content

Commit

Permalink
Emit error, not cookieError
Browse files Browse the repository at this point in the history
  • Loading branch information
stash committed Jan 14, 2014
1 parent cbee3d0 commit 3eeaf6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion request.js
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ Request.prototype.onResponse = function (response) {
try {
targetCookieJar.setCookie(cookie, self.uri.href);
} catch (e) {
self.emit('cookieError', e);
self.emit('error', e);
}
}

Expand Down

0 comments on commit 3eeaf6a

Please sign in to comment.