fix: throw error messages in dev mode (#1968)
Co-authored-by: Dominik Pschenitschni <mail@celement.de> Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/1968 Reviewed-by: konrad <k@knt.li> Co-authored-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de> Co-committed-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de>
This commit is contained in:
parent
6bab1088c7
commit
235967844a
1 changed files with 1 additions and 0 deletions
|
@ -102,6 +102,7 @@ app.config.errorHandler = (err, vm, info) => {
|
||||||
if (import.meta.env.DEV) {
|
if (import.meta.env.DEV) {
|
||||||
app.config.warnHandler = (msg, vm, info) => {
|
app.config.warnHandler = (msg, vm, info) => {
|
||||||
error(msg)
|
error(msg)
|
||||||
|
throw(msg)
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://stackoverflow.com/a/52076738/15522256
|
// https://stackoverflow.com/a/52076738/15522256
|
||||||
|
|
Loading…
Reference in a new issue