mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-23 21:45:46 +03:00
* client: add error message if update failed
This commit is contained in:
parent
cb3f7f2834
commit
9cffe865ec
2 changed files with 2 additions and 1 deletions
|
@ -262,5 +262,6 @@
|
||||||
"fix": "Fix",
|
"fix": "Fix",
|
||||||
"dns_providers": "Here is a <0>list of known DNS providers</0> to choose from.",
|
"dns_providers": "Here is a <0>list of known DNS providers</0> to choose from.",
|
||||||
"update_now": "Update now",
|
"update_now": "Update now",
|
||||||
|
"update_failed": "Update failed",
|
||||||
"processing_update": "Please wait, AdGuard Home is being updated"
|
"processing_update": "Please wait, AdGuard Home is being updated"
|
||||||
}
|
}
|
|
@ -172,7 +172,7 @@ export const getUpdate = () => async (dispatch) => {
|
||||||
}
|
}
|
||||||
}, CHECK_TIMEOUT);
|
}, CHECK_TIMEOUT);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
dispatch(addErrorToast({ error }));
|
dispatch(addErrorToast({ error: 'update_failed' }));
|
||||||
dispatch(getUpdateFailure());
|
dispatch(getUpdateFailure());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue