From 9cffe865ec888589e2ee7b0725d55bbeec49d969 Mon Sep 17 00:00:00 2001 From: Ildar Kamalov Date: Thu, 16 May 2019 17:33:09 +0300 Subject: [PATCH] * client: add error message if update failed --- 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 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()); } };