diff options
author | Michal Budzynski <michal@virtualdesign.pl> | 2012-11-09 09:57:53 -0800 |
---|---|---|
committer | Michal Budzynski <michal@virtualdesign.pl> | 2012-11-09 09:57:53 -0800 |
commit | 042257fc2db8b1f6afb81ff77bca60c0fd820883 (patch) | |
tree | 9d5d3ad9cd66c11e97e7474eb5802992b7596fc9 /lib/caldav/request/abstract.js | |
parent | f7cd3db807b41ca731db7f7cbbbd9d08b595ffe4 (diff) | |
parent | b74223999c5a240306132704177eb9cbb1dc9143 (diff) | |
download | jsCalDAV-042257fc2db8b1f6afb81ff77bca60c0fd820883.tar.gz |
Merge pull request #6 from michalbe/error-handler
error handler
Diffstat (limited to 'lib/caldav/request/abstract.js')
-rw-r--r-- | lib/caldav/request/abstract.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/caldav/request/abstract.js b/lib/caldav/request/abstract.js index 04101b5..41429c6 100644 --- a/lib/caldav/request/abstract.js +++ b/lib/caldav/request/abstract.js @@ -2,7 +2,7 @@ var SAX = ns.require('sax'); var XHR = ns.require('xhr'); - + var Errors = ns.require('request/errors'); /** * Creates an (Web/Cal)Dav request. @@ -69,7 +69,7 @@ self._processResult(req, callback); } else { // fail - callback(new Error('http error code: ' + xhr.status)); + callback(new Errors.CaldavHttpError(xhr.status)); } }); } |