This commit is contained in:
2019-11-13 22:53:42 +00:00
parent 8821831eca
commit 12ecd2a3b8
2 changed files with 20 additions and 2 deletions

View File

@@ -16,12 +16,13 @@ function dealWithError(msg, vm) {
}
window.$gz.store.commit("logItem", msg);
if (devModeShowErrors) {
//debugger;
var errMsg =
"DEV ERROR errorHandler::devShowUnknownError - unexpected error: \r\n" +
msg;
// eslint-disable-next-line no-console
console.log(errMsg);
window.$gz.eventBus.$emit("notify-error", errMsg);
window.$gz.eventBus.$emit("notify-error", "Dev error see log / console");
}
//If a form instance was provided (vue instance)