This commit is contained in:
2020-04-04 20:17:08 +00:00
parent 0a5aaeade1
commit c020ab0362
2 changed files with 7 additions and 6 deletions

View File

@@ -19,11 +19,12 @@ function dealWithError(msg, vm) {
//In some cases the error may not be translatable, if this is not a debug run then it should show without the ?? that translating puts in keys not found
//so it's not as weird looking to the user
if (!vm.$ay.dev && msg.includes("??")) {
//vm may be null here so check window gz for dev
if (!window.$gz.dev && msg.includes("??")) {
msg = msg.replace("??", "");
}
window.$gz.store.commit("logItem", msg);
if (vm.$ay.dev) {
if (window.$gz.dev) {
let errMsg =
"DEV ERROR errorHandler::devShowUnknownError - unexpected error: \r\n" +
msg;