This commit is contained in:
2020-09-16 21:03:55 +00:00
parent 518c2290be
commit 47fd8ed528
3 changed files with 7 additions and 5 deletions

View File

@@ -2,14 +2,12 @@
@@@@@@@@@@@@@@@ ROADMAP STAGE 4 - REPORTING / DASHBOARD / KPI @@@@@@@@@@@@@@@ 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: Exceptions don't show "Name: Error," ever
todo: NON DEV MODE todo: NON DEV MODE
No stack trace in error messages! No stack trace in error messages!
But do keep stack trace in internal LOG for diagnosis But do keep stack trace in internal LOG for diagnosis
todo: when server down get this weird TypeError string at client: todo: when server down get this weird TypeError string at client:
"Could not connect to AyaNova server at http://localhost:7575/api/v8.0/ "Could not connect to AyaNova server at http://localhost:7575/api/v8.0/
Error: TypeError: NetworkError when attempting to fetch resource." Error: TypeError: NetworkError when attempting to fetch resource."

View File

@@ -46,6 +46,7 @@ export default {
helpUrl helpUrl
) { ) {
window.$gz.store.commit("logItem", "notify-warning: " + msg); window.$gz.store.commit("logItem", "notify-warning: " + msg);
msg = msg.substring(0, 600);
vm.$root.$gznotify({ vm.$root.$gznotify({
message: msg, message: msg,
type: "warning", type: "warning",
@@ -61,6 +62,7 @@ export default {
helpUrl helpUrl
) { ) {
window.$gz.store.commit("logItem", "notify-info: " + msg); window.$gz.store.commit("logItem", "notify-info: " + msg);
msg = msg.substring(0, 600);
vm.$root.$gznotify({ vm.$root.$gznotify({
message: msg, message: msg,
type: "info", type: "info",

View File

@@ -370,13 +370,15 @@ export default {
if ( if (
msg.includes("NetworkError") || msg.includes("NetworkError") ||
msg.includes("Failed to fetch") msg.includes("Failed to fetch")
) { ) {
msg = msg =
"Could not connect to AyaNova server at " + "Could not connect to AyaNova server at " +
window.$gz.api.APIUrl("") + window.$gz.api.APIUrl("") +
"\r\nError: " + "\r\nError: " +
error.message; error.message;
} }
//this just makes the error a little cleaner to remove the extraneous typeerror
msg = msg.replace(" TypeError:", "");
vm.formState.errorBoxMessage = msg; vm.formState.errorBoxMessage = msg;
return; return;
} }