diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-18 00:42:04 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-18 00:42:04 +0200 |
commit | 564e01eaf6f6523761695b74fde96eef5002ed9c (patch) | |
tree | afcaab562f6a45b0db675a22468eeb4717200b8c /app/assets/javascripts/components/actions/interactions.jsx | |
parent | c9a7e6e1e3d60e142c035006e7806643c173f63a (diff) |
Add console.error to all axios failures
Diffstat (limited to 'app/assets/javascripts/components/actions/interactions.jsx')
-rw-r--r-- | app/assets/javascripts/components/actions/interactions.jsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/components/actions/interactions.jsx b/app/assets/javascripts/components/actions/interactions.jsx index ce7797eaa..8a409dd5d 100644 --- a/app/assets/javascripts/components/actions/interactions.jsx +++ b/app/assets/javascripts/components/actions/interactions.jsx @@ -25,6 +25,7 @@ export function reblog(status) { // interested in how the original is modified, hence passing it skipping the wrapper dispatch(reblogSuccess(status, response.data.reblog)); }).catch(function (error) { + console.error(error); dispatch(reblogFail(status, error)); }); }; @@ -37,6 +38,7 @@ export function unreblog(status) { api(getState).post(`/api/v1/statuses/${status.get('id')}/unreblog`).then(response => { dispatch(unreblogSuccess(status, response.data)); }).catch(error => { + console.error(error); dispatch(unreblogFail(status, error)); }); }; @@ -95,6 +97,7 @@ export function favourite(status) { api(getState).post(`/api/v1/statuses/${status.get('id')}/favourite`).then(function (response) { dispatch(favouriteSuccess(status, response.data)); }).catch(function (error) { + console.error(error); dispatch(favouriteFail(status, error)); }); }; @@ -107,6 +110,7 @@ export function unfavourite(status) { api(getState).post(`/api/v1/statuses/${status.get('id')}/unfavourite`).then(response => { dispatch(unfavouriteSuccess(status, response.data)); }).catch(error => { + console.error(error); dispatch(unfavouriteFail(status, error)); }); }; |