This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user