From ded02d112c0e5b6d9585ec5506f24746abffdff3 Mon Sep 17 00:00:00 2001 From: Ildar Kamalov Date: Fri, 14 Sep 2018 21:31:20 +0300 Subject: [PATCH] Add console error --- client/src/actions/index.js | 1 + client/src/api/Api.js | 1 + 2 files changed, 2 insertions(+) diff --git a/client/src/actions/index.js b/client/src/actions/index.js index 0c9fd3a5..27d57f39 100644 --- a/client/src/actions/index.js +++ b/client/src/actions/index.js @@ -16,6 +16,7 @@ export const showSettingsFailure = createAction('SETTINGS_FAILURE_SHOW'); export const toggleSetting = (settingKey, status) => async (dispatch) => { let successMessage = ''; try { + // TODO move setting keys to constants switch (settingKey) { case 'filtering': if (status) { diff --git a/client/src/api/Api.js b/client/src/api/Api.js index e09ed797..8cec8a05 100644 --- a/client/src/api/Api.js +++ b/client/src/api/Api.js @@ -14,6 +14,7 @@ export default class Api { }); return response.data; } catch (error) { + console.error(error); throw new Error(`${this.baseUrl}/${path} | ${error.response.data} | ${error.response.status}`); } }