* client: add error message if update failed

This commit is contained in:
Ildar Kamalov 2019-05-16 17:33:09 +03:00 committed by Simon Zolin
parent cb3f7f2834
commit 9cffe865ec
2 changed files with 2 additions and 1 deletions

View File

@ -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"
} }

View File

@ -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());
} }
}; };