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;
|
||||
|
||||
Reference in New Issue
Block a user