about summary refs log tree commit diff
path: root/app/assets/javascripts/components/actions/timelines.jsx
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-10-18 00:42:04 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-10-18 00:42:04 +0200
commit564e01eaf6f6523761695b74fde96eef5002ed9c (patch)
treeafcaab562f6a45b0db675a22468eeb4717200b8c /app/assets/javascripts/components/actions/timelines.jsx
parentc9a7e6e1e3d60e142c035006e7806643c173f63a (diff)
Add console.error to all axios failures
Diffstat (limited to 'app/assets/javascripts/components/actions/timelines.jsx')
-rw-r--r--app/assets/javascripts/components/actions/timelines.jsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/assets/javascripts/components/actions/timelines.jsx b/app/assets/javascripts/components/actions/timelines.jsx
index f92f758f5..7b01d43d9 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));
     });
   };