diff --git a/client/src/__locales/en.json b/client/src/__locales/en.json index eaf9dc63..cb9519f3 100644 --- a/client/src/__locales/en.json +++ b/client/src/__locales/en.json @@ -262,5 +262,6 @@ "fix": "Fix", "dns_providers": "Here is a <0>list of known DNS providers to choose from.", "update_now": "Update now", + "update_failed": "Update failed", "processing_update": "Please wait, AdGuard Home is being updated" } \ No newline at end of file diff --git a/client/src/actions/index.js b/client/src/actions/index.js index 02d327cf..36c82fbd 100644 --- a/client/src/actions/index.js +++ b/client/src/actions/index.js @@ -172,7 +172,7 @@ export const getUpdate = () => async (dispatch) => { } }, CHECK_TIMEOUT); } catch (error) { - dispatch(addErrorToast({ error })); + dispatch(addErrorToast({ error: 'update_failed' })); dispatch(getUpdateFailure()); } };