* client: add error message if update failed
This commit is contained in:
parent
cb3f7f2834
commit
9cffe865ec
|
@ -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"
|
||||||
}
|
}
|
|
@ -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());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue