This commit is contained in:
@@ -2,14 +2,12 @@
|
||||
@@@@@@@@@@@@@@@ ROADMAP STAGE 4 - REPORTING / DASHBOARD / KPI
|
||||
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||
|
||||
todo: exception handling around reports sucks
|
||||
todo: No message in popup should be more than can be viewed at once on a phone (600 characters maximum)
|
||||
todo: Exceptions, some are still showing [object,object]!
|
||||
|
||||
todo: Exceptions don't show "Name: Error," ever
|
||||
todo: NON DEV MODE
|
||||
No stack trace in error messages!
|
||||
But do keep stack trace in internal LOG for diagnosis
|
||||
|
||||
|
||||
todo: when server down get this weird TypeError string at client:
|
||||
"Could not connect to AyaNova server at http://localhost:7575/api/v8.0/
|
||||
Error: TypeError: NetworkError when attempting to fetch resource."
|
||||
|
||||
@@ -46,6 +46,7 @@ export default {
|
||||
helpUrl
|
||||
) {
|
||||
window.$gz.store.commit("logItem", "notify-warning: " + msg);
|
||||
msg = msg.substring(0, 600);
|
||||
vm.$root.$gznotify({
|
||||
message: msg,
|
||||
type: "warning",
|
||||
@@ -61,6 +62,7 @@ export default {
|
||||
helpUrl
|
||||
) {
|
||||
window.$gz.store.commit("logItem", "notify-info: " + msg);
|
||||
msg = msg.substring(0, 600);
|
||||
vm.$root.$gznotify({
|
||||
message: msg,
|
||||
type: "info",
|
||||
|
||||
@@ -370,13 +370,15 @@ export default {
|
||||
if (
|
||||
msg.includes("NetworkError") ||
|
||||
msg.includes("Failed to fetch")
|
||||
) {
|
||||
) {
|
||||
msg =
|
||||
"Could not connect to AyaNova server at " +
|
||||
window.$gz.api.APIUrl("") +
|
||||
"\r\nError: " +
|
||||
error.message;
|
||||
}
|
||||
//this just makes the error a little cleaner to remove the extraneous typeerror
|
||||
msg = msg.replace(" TypeError:", "");
|
||||
vm.formState.errorBoxMessage = msg;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user