2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00

Improve error handling

This commit is contained in:
Nick Uraltsev
2016-06-13 13:56:08 -07:00
parent 120e8f5557
commit 91dae3c4ad
14 changed files with 120 additions and 41 deletions
+4 -4
View File
@@ -25,8 +25,8 @@ module.exports = {
timeout: 250
}).then(function (res) {
success = true;
}).catch(function (res) {
error = res;
}).catch(function (err) {
error = err;
failure = true;
});
@@ -189,8 +189,8 @@ module.exports = {
maxContentLength: 2000
}).then(function (res) {
success = true;
}).catch(function (res) {
error = res;
}).catch(function (err) {
error = err;
failure = true;
});