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

Function handleError

static/vuejs/vue.esm.js:1438–1452  ·  view source on GitHub ↗
(err, vm, info)

Source from the content-addressed store, hash-verified

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

Callers 4

callHookFunction · 0.70
vue.esm.jsFile · 0.70
getDataFunction · 0.70
renderMixinFunction · 0.70

Calls 1

warnFunction · 0.50

Tested by

no test coverage detected