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