diff --git a/app/assets/javascripts/components/actions/accounts.jsx b/app/assets/javascripts/components/actions/accounts.jsx index 4847c37e290e822a5e68374bd79aaa0a30ec5bf8..1d1835b1df3d0cb9b100ae707f2aafe6216b382c 100644 --- a/app/assets/javascripts/components/actions/accounts.jsx +++ b/app/assets/javascripts/components/actions/accounts.jsx @@ -48,6 +48,7 @@ export function fetchAccount(id) { axios.all([boundApi.get(`/api/v1/accounts/${id}`), boundApi.get(`/api/v1/accounts/relationships?id=${id}`)]).then(values => { dispatch(fetchAccountSuccess(values[0].data, values[1].data[0])); }).catch(error => { + console.error(error); dispatch(fetchAccountFail(id, error)); }); }; @@ -60,6 +61,7 @@ export function fetchAccountTimeline(id) { api(getState).get(`/api/v1/accounts/${id}/statuses`).then(response => { dispatch(fetchAccountTimelineSuccess(id, response.data)); }).catch(error => { + console.error(error); dispatch(fetchAccountTimelineFail(id, error)); }); }; @@ -74,6 +76,7 @@ export function expandAccountTimeline(id) { api(getState).get(`/api/v1/accounts/${id}/statuses?max_id=${lastId}`).then(response => { dispatch(expandAccountTimelineSuccess(id, response.data)); }).catch(error => { + console.error(error); dispatch(expandAccountTimelineFail(id, error)); }); }; @@ -109,6 +112,7 @@ export function followAccount(id) { api(getState).post(`/api/v1/accounts/${id}/follow`).then(response => { dispatch(followAccountSuccess(response.data)); }).catch(error => { + console.error(error); dispatch(followAccountFail(error)); }); }; @@ -121,6 +125,7 @@ export function unfollowAccount(id) { api(getState).post(`/api/v1/accounts/${id}/unfollow`).then(response => { dispatch(unfollowAccountSuccess(response.data)); }).catch(error => { + console.error(error); dispatch(unfollowAccountFail(error)); }); } @@ -221,6 +226,7 @@ export function blockAccount(id) { api(getState).post(`/api/v1/accounts/${id}/block`).then(response => { dispatch(blockAccountSuccess(response.data)); }).catch(error => { + console.error(error); dispatch(blockAccountFail(id, error)); }); }; @@ -233,6 +239,7 @@ export function unblockAccount(id) { api(getState).post(`/api/v1/accounts/${id}/unblock`).then(response => { dispatch(unblockAccountSuccess(response.data)); }).catch(error => { + console.error(error); dispatch(unblockAccountFail(id, error)); }); }; diff --git a/app/assets/javascripts/components/actions/compose.jsx b/app/assets/javascripts/components/actions/compose.jsx index 402c59dc6e4c57d035bb167db221f2fb5c1f95a2..d436792b9f0f31eb0d68eed25447bad65ef4956a 100644 --- a/app/assets/javascripts/components/actions/compose.jsx +++ b/app/assets/javascripts/components/actions/compose.jsx @@ -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)); }); }; diff --git a/app/assets/javascripts/components/actions/follow.jsx b/app/assets/javascripts/components/actions/follow.jsx index 8eb4407894428ec395d7ee5283e05505cc8842ff..74981cd17d77466bb8818b5a7eaa456a15ccfe78 100644 --- a/app/assets/javascripts/components/actions/follow.jsx +++ b/app/assets/javascripts/components/actions/follow.jsx @@ -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)); }); }; diff --git a/app/assets/javascripts/components/actions/interactions.jsx b/app/assets/javascripts/components/actions/interactions.jsx index ce7797eaabe2cac3d0b9b2ba655f73d46c04ddbf..8a409dd5db25672c54d701978a3773204952924c 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)); }); }; diff --git a/app/assets/javascripts/components/actions/statuses.jsx b/app/assets/javascripts/components/actions/statuses.jsx index 2fb2d1ba129ad97392881ee0232196c79d33ab77..f7b7b9f737d124d7f08e074ef678dba5b3eadc4e 100644 --- a/app/assets/javascripts/components/actions/statuses.jsx +++ b/app/assets/javascripts/components/actions/statuses.jsx @@ -25,6 +25,7 @@ export function fetchStatus(id) { axios.all([boundApi.get(`/api/v1/statuses/${id}`), boundApi.get(`/api/v1/statuses/${id}/context`)]).then(values => { dispatch(fetchStatusSuccess(values[0].data, values[1].data)); }).catch(error => { + console.error(error); dispatch(fetchStatusFail(id, error)); }); }; @@ -53,6 +54,7 @@ export function deleteStatus(id) { api(getState).delete(`/api/v1/statuses/${id}`).then(response => { dispatch(deleteStatusSuccess(id)); }).catch(error => { + console.error(error); dispatch(deleteStatusFail(id, error)); }); }; diff --git a/app/assets/javascripts/components/actions/suggestions.jsx b/app/assets/javascripts/components/actions/suggestions.jsx index c70a4d121e429aeac03cb4598c97db2558a2a007..103502a2f270c6c8d0cfe9bc0daee5f6d20df343 100644 --- a/app/assets/javascripts/components/actions/suggestions.jsx +++ b/app/assets/javascripts/components/actions/suggestions.jsx @@ -11,6 +11,7 @@ export function fetchSuggestions() { api(getState).get('/api/v1/accounts/suggestions').then(response => { dispatch(fetchSuggestionsSuccess(response.data)); }).catch(error => { + console.error(error); dispatch(fetchSuggestionsFail(error)); }); }; diff --git a/app/assets/javascripts/components/actions/timelines.jsx b/app/assets/javascripts/components/actions/timelines.jsx index f92f758f5a8566b5d364d2ec6581367d03ed5e1b..7b01d43d91d2c7312c1bd983ea56c4841aa902d5 100644 --- a/app/assets/javascripts/components/actions/timelines.jsx +++ b/app/assets/javascripts/components/actions/timelines.jsx @@ -48,6 +48,7 @@ export function refreshTimeline(timeline) { api(getState).get(`/api/v1/statuses/${timeline}`).then(function (response) { dispatch(refreshTimelineSuccess(timeline, response.data)); }).catch(function (error) { + console.error(error); dispatch(refreshTimelineFail(timeline, error)); }); }; @@ -70,6 +71,7 @@ export function expandTimeline(timeline) { api(getState).get(`/api/v1/statuses/${timeline}?max_id=${lastId}`).then(response => { dispatch(expandTimelineSuccess(timeline, response.data)); }).catch(error => { + console.error(error); dispatch(expandTimelineFail(timeline, error)); }); };