This commit is contained in:
@@ -123,14 +123,19 @@ function decodeError(e, vm) {
|
|||||||
msg += "\n";
|
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 += err.message;
|
||||||
msg += "\n";
|
msg += "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (err.details) {
|
if (err.details) {
|
||||||
err.details.forEach(z => {
|
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;
|
return msg;
|
||||||
|
|||||||
@@ -115,7 +115,11 @@ function getErrorBoxErrors(vm, errs) {
|
|||||||
//any application errors?
|
//any application errors?
|
||||||
if (vm.formState.appError) {
|
if (vm.formState.appError) {
|
||||||
hasErrors = true;
|
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) {
|
if (!hasErrors) {
|
||||||
|
|||||||
Reference in New Issue
Block a user