Add console.error to all axios failures

This commit is contained in:
Eugen Rochko
2016-10-18 00:42:04 +02:00
parent c9a7e6e1e3
commit 564e01eaf6
7 changed files with 19 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ export function submitFollow(router) {
dispatch(submitFollowSuccess(response.data));
router.push(`/accounts/${response.data.id}`);
}).catch(function (error) {
console.error(error);
dispatch(submitFollowFail(error));
});
};