From 564e01eaf6f6523761695b74fde96eef5002ed9c Mon Sep 17 00:00:00 2001
From: Eugen Rochko <eugen@zeonfederated.com>
Date: Tue, 18 Oct 2016 00:42:04 +0200
Subject: Add console.error to all axios failures

---
 app/assets/javascripts/components/actions/interactions.jsx | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'app/assets/javascripts/components/actions/interactions.jsx')

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));
     });
   };
-- 
cgit 

