about summary refs log tree commit diff
path: root/app/assets/javascripts/components/actions/follow.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/follow.jsx
parentc9a7e6e1e3d60e142c035006e7806643c173f63a (diff)
Add console.error to all axios failures
Diffstat (limited to 'app/assets/javascripts/components/actions/follow.jsx')
-rw-r--r--app/assets/javascripts/components/actions/follow.jsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/assets/javascripts/components/actions/follow.jsx b/app/assets/javascripts/components/actions/follow.jsx
index 8eb440789..74981cd17 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));
     });
   };