Add console.error to all axios failures
This commit is contained in:
parent
c9a7e6e1e3
commit
564e01eaf6
7 changed files with 19 additions and 0 deletions
|
@ -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));
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue