We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7731488 commit f86a8faCopy full SHA for f86a8fa
src/history/base.js
@@ -83,7 +83,12 @@ export class History {
83
const current = this.current
84
const abort = err => {
85
if (err instanceof Error) {
86
- this.errorCbs.forEach(cb => { cb(err) })
+ if (this.errorCbs.length) {
87
+ this.errorCbs.forEach(cb => { cb(err) })
88
+ } else {
89
+ warn(false, 'uncaught error during route navigation:')
90
+ console.error(err)
91
+ }
92
}
93
onAbort && onAbort(err)
94
0 commit comments