Add console.error to all axios failures

This commit is contained in:
Eugen Rochko committed 2016-10-18 00:42:04 +02:00
1 parent c9a7e6e1e3
commit 564e01eaf6
7 files changed
+19

No files matched your search

@@ -43,6 +43,7 @@ export function submitCompose() {
}).then(function (response) {
dispatch(submitComposeSuccess(response.data));
}).catch(function (error) {
console.error(error);
dispatch(submitComposeFail(error));
});
};
@@ -82,6 +83,7 @@ export function uploadCompose(files) {
}).then(function (response) {
dispatch(uploadComposeSuccess(response.data));
}).catch(function (error) {
console.error(error);
dispatch(uploadComposeFail(error));
});
};