diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index fcd8b351..2a5225a6 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -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." diff --git a/ayanova/src/api/gzdialog.js b/ayanova/src/api/gzdialog.js index aa5ce5c5..42069297 100644 --- a/ayanova/src/api/gzdialog.js +++ b/ayanova/src/api/gzdialog.js @@ -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", diff --git a/ayanova/src/views/login.vue b/ayanova/src/views/login.vue index aa9fc84d..e42bf796 100644 --- a/ayanova/src/views/login.vue +++ b/ayanova/src/views/login.vue @@ -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; }