This commit is contained in:
@@ -25,14 +25,13 @@ function dealWithError(msg, vm) {
|
||||
}
|
||||
window.$gz.store.commit("logItem", msg);
|
||||
if (window.$gz.dev) {
|
||||
let errMsg =
|
||||
"DEV ERROR errorHandler::devShowUnknownError - unexpected error: \r\n" +
|
||||
msg;
|
||||
let errMsg = "Unexpected error: \r\n" + msg;
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(errMsg);
|
||||
console.trace();
|
||||
debugger;
|
||||
window.$gz.eventBus.$emit("notify-error", "Dev error see log / console");
|
||||
// window.$gz.eventBus.$emit("notify-error", "Dev error see log / console");
|
||||
return;
|
||||
}
|
||||
|
||||
//If a form instance was provided (vue instance)
|
||||
@@ -50,6 +49,9 @@ function dealWithError(msg, vm) {
|
||||
//it's related to server errors but I'm setting appError above
|
||||
//why two error properties?
|
||||
window.$gz.form.setErrorBoxErrors(vm);
|
||||
} else {
|
||||
//popup if no place to display it elsewise
|
||||
window.$gz.eventBus.$emit("notify-error", msg);
|
||||
}
|
||||
}
|
||||
export default {
|
||||
|
||||
Reference in New Issue
Block a user