This commit is contained in:
2019-12-11 21:23:37 +00:00
parent a1755864de
commit a86df67e11
3 changed files with 23 additions and 4 deletions

View File

@@ -83,6 +83,10 @@ function handleError(action, error, route, reject) {
error.message.includes("Network request failed")
) {
window.$gz.store.commit("logItem", "Network error");
window.$gz.eventBus.$emit(
"notify-error",
window.$gz.locale.get("ErrorServerUnresponsive")
);
//note: using locale key in square brackets
return reject("[ErrorServerUnresponsive]");
//throw "Error: unable to contact server";