diff --git a/client/src/__locales/en.json b/client/src/__locales/en.json index f653bc37..2afa38bd 100644 --- a/client/src/__locales/en.json +++ b/client/src/__locales/en.json @@ -454,6 +454,7 @@ "updates_checked": "A new version of AdGuard Home is available", "updates_version_equal": "AdGuard Home is up-to-date", "check_updates_now": "Check for updates now", + "version_request_error": "Update check failed. Please check your Internet connection.", "dns_privacy": "DNS Privacy", "setup_dns_privacy_1": "<0>DNS-over-TLS: Use <1>{{address}} string.", "setup_dns_privacy_2": "<0>DNS-over-HTTPS: Use <1>{{address}} string.", diff --git a/client/src/actions/index.js b/client/src/actions/index.js index d86ea43e..2780c94d 100644 --- a/client/src/actions/index.js +++ b/client/src/actions/index.js @@ -141,7 +141,7 @@ export const getVersion = (recheck = false) => async (dispatch, getState) => { } } } catch (error) { - dispatch(addErrorToast({ error })); + dispatch(addErrorToast({ error: 'version_request_error' })); dispatch(getVersionFailure()); } };