This commit is contained in:
2019-03-07 18:30:53 +00:00
parent c3020ac34a
commit 399143cc70
5 changed files with 26 additions and 9 deletions

View File

@@ -36,7 +36,7 @@ export default {
// }
if (info) {
msg += "\ninfo: " + info;
}
}
dealWithError(msg);
},
handleVueWarning(wmsg, vm, trace) {
@@ -48,5 +48,13 @@ export default {
msg += "\ntrace: " + trace;
}
dealWithError(msg);
},
handleFormError(err) {
//called inside forms when things go wrong but are handled
if (err instanceof Error && err.message) {
dealWithError(err.message);
} else {
dealWithError(err.toString());
}
}
};