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,9 +2,7 @@
@@@@@@@@@@@@@@@ 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!

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

@@ -377,6 +377,8 @@ export default {
"\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;
} }