MCPcopy Create free account
hub / github.com/TruthHun/BookStack / handleError

Function handleError

static/vuejs/vue.runtime.common.js:1436–1450  ·  view source on GitHub ↗
(err, vm, info)

Source from the content-addressed store, hash-verified

1434}
1435
1436function handleError (err, vm, info) {
1437 if (config.errorHandler) {
1438 config.errorHandler.call(null, err, vm, info);
1439 } else {
1440 if (process.env.NODE_ENV !== 'production') {
1441 warn(("Error in " + info + ":"), vm);
1442 }
1443 /* istanbul ignore else */
1444 if (inBrowser && typeof console !== 'undefined') {
1445 console.error(err);
1446 } else {
1447 throw err
1448 }
1449 }
1450}
1451
1452/* not type checking this file because flow doesn't play well with Proxy */
1453

Callers 4

callHookFunction · 0.70
getDataFunction · 0.70
renderMixinFunction · 0.70

Calls 1

warnFunction · 0.50

Tested by

no test coverage detected