From d52f1d0e70293d382d451cbfc64938355ae7f647 Mon Sep 17 00:00:00 2001 From: Ainar Garipov Date: Fri, 27 Jan 2023 13:00:58 +0300 Subject: [PATCH] Pull request 1720: 4940-version-check-error Updates #4940. Squashed commit of the following: commit f8cc9aeb63478e17a7e5108e2ebacf49a79ed2a3 Author: Ainar Garipov Date: Thu Jan 26 20:23:24 2023 +0300 client: imp version check fail message --- client/src/__locales/en.json | 1 + client/src/actions/index.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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()); } };