diff --git a/core-ajax.html b/core-ajax.html index cd8c633..2d3dbd2 100644 --- a/core-ajax.html +++ b/core-ajax.html @@ -248,11 +248,11 @@ }, processError: function(xhr) { - var response = xhr.status + ': ' + xhr.responseText; + var response = this.evalResponse(xhr); if (xhr === this.activeRequest) { this.error = response; } - this.fire('core-error', {response: response, xhr: xhr}); + this.fire('core-error', {response: response, status: xhr.status, xhr: xhr}); }, processProgress: function(progress, xhr) {