mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-22 13:05:36 +03:00
Add console error
This commit is contained in:
parent
d237df6389
commit
ded02d112c
2 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
|
@ -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}`);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue