[Pkg-javascript-commits] [dojo] 24/88: Added back-compat properties to errors (1.8 backport). refs #16023 !strict
David Prévot
taffit at moszumanska.debian.org
Thu Aug 21 17:39:33 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag 1.8.5
in repository dojo.
commit fe1d488682901ed402d90caaaea5c0d0381e61ed
Author: Bryan Forbes <bryan at reigndropsfall.net>
Date: Wed Sep 26 18:05:50 2012 +0000
Added back-compat properties to errors (1.8 backport). refs #16023 !strict
git-svn-id: http://svn.dojotoolkit.org/src/branches/1.8/dojo@29709 560b804f-0ae3-0310-86f3-f6aa0a117693
---
_base/xhr.js | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/_base/xhr.js b/_base/xhr.js
index 7f30d46..e1106f1 100644
--- a/_base/xhr.js
+++ b/_base/xhr.js
@@ -619,6 +619,11 @@ define([
dfd.resolve(dfd);
}).otherwise(function(error){
ioArgs.error = error;
+ if(error.response){
+ error.status = error.response.status;
+ error.responseText = error.response.text;
+ error.xhr = error.response.xhr;
+ }
dfd.reject(error);
});
return dfd; // dojo/_base/Deferred
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/dojo.git
More information about the Pkg-javascript-commits
mailing list