Add console error

This commit is contained in:
Ildar Kamalov 2018-09-14 21:31:20 +03:00
parent d237df6389
commit ded02d112c
2 changed files with 2 additions and 0 deletions

View File

@ -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) {

View File

@ -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}`);
}
}