MCPcopy Index your code
hub / github.com/keepfool/vue-tutorials / onError

Function onError

06.Router/basic/js/vue-router.js:1549–1555  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

1547
1548 // handle errors
1549 var onError = function onError(err) {
1550 postActivate ? next() : abort();
1551 if (err && !transition.router._suppress) {
1552 warn$1('Uncaught error during transition: ');
1553 throw err instanceof Error ? err : new Error(err);
1554 }
1555 };
1556
1557 // since promise swallows errors, we have to
1558 // throw it in the next tick...

Callers 3

onPromiseErrorFunction · 0.85
nextWithDataFunction · 0.85
vue-router.jsFile · 0.85

Calls 3

warn$1Function · 0.85
nextFunction · 0.70
abortFunction · 0.70

Tested by

no test coverage detected