This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user