This commit is contained in:
2021-11-19 18:03:31 +00:00
parent 1486ca2a42
commit 3f77058fa0
2 changed files with 12 additions and 3 deletions

View File

@@ -123,14 +123,19 @@ function decodeError(e, vm) {
msg += "\n";
}
if (err.message) {
if (err.message && !err.message.startsWith("ErrorAPI")) {
//errapi already dealt with above no need to repeat it here
msg += err.message;
msg += "\n";
}
if (err.details) {
err.details.forEach(z => {
msg += `${z.error} ${z.message}\n`;
let zerror = null;
if (z.error) {
zerror = z.error + " - ";
}
msg += `${zerror}${z.message}\n`;
});
}
return msg;

View File

@@ -115,7 +115,11 @@ function getErrorBoxErrors(vm, errs) {
//any application errors?
if (vm.formState.appError) {
hasErrors = true;
ret += vm.formState.appError + "\r\n----------\r\n" + ret;
// console.log("gzform:geterrorboxerrors ", {
// appError: vm.formState.appError,
// ret: ret
// });
ret += vm.formState.appError;
}
if (!hasErrors) {