This commit is contained in:
@@ -29,12 +29,11 @@ function dealWithError(msg, vm) {
|
||||
}
|
||||
window.$gz.store.commit("logItem", msg);
|
||||
if (window.$gz.dev) {
|
||||
let errMsg = "Unexpected error: \r\n" + msg;
|
||||
let errMsg = "DEV MODE errorHandler.js:: Unexpected error: \r\n" + msg;
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(errMsg);
|
||||
console.trace();
|
||||
debugger;
|
||||
return;
|
||||
//console.trace();
|
||||
//debugger;
|
||||
}
|
||||
|
||||
//If a form instance was provided (vue instance)
|
||||
@@ -42,6 +41,7 @@ function dealWithError(msg, vm) {
|
||||
if (!vm || vm.formState == undefined) {
|
||||
//popup if no place to display it elsewise
|
||||
window.$gz.eventBus.$emit("notify-error", msg);
|
||||
//debugger;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user