This commit is contained in:
@@ -818,6 +818,7 @@ TODO: 1 BETA DOCS:
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
"Vue error: \nJob failed\ninfo: event handler for \"menu-click\" (Promise/async)"
|
||||||
|
|
||||||
Vue error: Error - Name:SyntaxError, Message:JSON.parse: unexpected character at line 1 column 1 of the JSON data filename: http://localhost:8080/app.5c05fef9e3087cf58202.hot-update.js
|
Vue error: Error - Name:SyntaxError, Message:JSON.parse: unexpected character at line 1 column 1 of the JSON data filename: http://localhost:8080/app.5c05fef9e3087cf58202.hot-update.js
|
||||||
lineNumber: 256 info: event handler for "menu-click" (Promise/async) STACK: _callee2$@http://localhost:8080/app.5c05fef9e3087cf58202.hot-update.js:256:42
|
lineNumber: 256 info: event handler for "menu-click" (Promise/async) STACK: _callee2$@http://localhost:8080/app.5c05fef9e3087cf58202.hot-update.js:256:42
|
||||||
|
|||||||
@@ -39,6 +39,12 @@ async function dealWithError(msg, vm) {
|
|||||||
//If a form instance was provided (vue instance)
|
//If a form instance was provided (vue instance)
|
||||||
//and it can display and error then put the error into it
|
//and it can display and error then put the error into it
|
||||||
if (!vm || vm.formState == undefined) {
|
if (!vm || vm.formState == undefined) {
|
||||||
|
//Special work around to not redundantly display errors when AyaNova job fails
|
||||||
|
// and Vue decides to throw it's own error into the mix when we've already displayed appropriate message
|
||||||
|
if (msg.includes("Vue error") && msg.includes("Job failed")) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
//popup if no place to display it elsewise
|
//popup if no place to display it elsewise
|
||||||
window.$gz.eventBus.$emit("notify-error", msg);
|
window.$gz.eventBus.$emit("notify-error", msg);
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -172,11 +172,6 @@ export default {
|
|||||||
`job-operations/logs/${jobId}`
|
`job-operations/logs/${jobId}`
|
||||||
);
|
);
|
||||||
|
|
||||||
console.log("report error", {
|
|
||||||
jobStatus,
|
|
||||||
jobLogRes
|
|
||||||
});
|
|
||||||
|
|
||||||
//get final entry is error or success
|
//get final entry is error or success
|
||||||
var finalJobLogMessage = jobLogRes.data[jobLogRes.data.length - 1];
|
var finalJobLogMessage = jobLogRes.data[jobLogRes.data.length - 1];
|
||||||
const finalJobLogObject = JSON.parse(finalJobLogMessage.statusText);
|
const finalJobLogObject = JSON.parse(finalJobLogMessage.statusText);
|
||||||
@@ -204,7 +199,7 @@ export default {
|
|||||||
`${this.$store.state.helpUrl}/ay-report-timeout`
|
`${this.$store.state.helpUrl}/ay-report-timeout`
|
||||||
);
|
);
|
||||||
//we're done here
|
//we're done here
|
||||||
this.reject(this.$ay.t("JobFailed"));
|
return this.reject(this.$ay.t("JobFailed"));
|
||||||
} else {
|
} else {
|
||||||
//exception
|
//exception
|
||||||
e = `${this.$ay.t("JobFailed")}: ${
|
e = `${this.$ay.t("JobFailed")}: ${
|
||||||
@@ -216,6 +211,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
console.log("throwing");
|
||||||
throw new Error(e);
|
throw new Error(e);
|
||||||
}
|
}
|
||||||
if (jobStatus == 3) {
|
if (jobStatus == 3) {
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ import chartBarHorizontalControl from "./components/chart-bar-horizontal-control
|
|||||||
//DEVELOPMENT MODE
|
//DEVELOPMENT MODE
|
||||||
//THIS SHOULD BE FALSE IN RELEASE
|
//THIS SHOULD BE FALSE IN RELEASE
|
||||||
//************************************************************
|
//************************************************************
|
||||||
const DEV_MODE = true;
|
const DEV_MODE = false;
|
||||||
//************************************************************
|
//************************************************************
|
||||||
//**************************************************************
|
//**************************************************************
|
||||||
//**************************************************************
|
//**************************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user