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
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
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."

View File

@@ -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",

View File

@@ -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;
}