From dab713aafe15f35456713bde346646629ef2c846 Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Tue, 3 Jan 2012 13:23:15 -0800 Subject: [PATCH] Make sure to conserve the error on Request#onError --- lib/transports/polling-xhr.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/transports/polling-xhr.js b/lib/transports/polling-xhr.js index 25b79a5a..c80beec2 100644 --- a/lib/transports/polling-xhr.js +++ b/lib/transports/polling-xhr.js @@ -228,8 +228,8 @@ Request.prototype.onData = function (data) { * @api private */ -Request.prototype.onError = function () { - this.emit('error'); +Request.prototype.onError = function (err) { + this.emit('error', err); this.cleanup(); }