MCPcopy
hub / github.com/single-spa/single-spa / formatErrorMessage

Function formatErrorMessage

src/applications/app-errors.js:50–56  ·  view source on GitHub ↗
(code, msg, ...args)

Source from the content-addressed store, hash-verified

48}
49
50export function formatErrorMessage(code, msg, ...args) {
51 return `single-spa minified message #${code}: ${
52 msg ? msg + " " : ""
53 }See https://single-spa.js.org/error/?code=${code}${
54 args.length ? `&arg=${args.join("&arg=")}` : ""
55 }`;
56}
57
58export function transformErr(ogErr, appOrParcel, newStatus) {
59 const errPrefix = `${objectType(appOrParcel)} '${toName(

Callers 15

mountParcelFunction · 0.90
unmountThisParcelFunction · 0.90
mountFunction · 0.90
setBootstrapMaxTimeFunction · 0.90
setMountMaxTimeFunction · 0.90
setUnmountMaxTimeFunction · 0.90
setUnloadMaxTimeFunction · 0.90
reasonableTimeFunction · 0.90
registerApplicationFunction · 0.90
unregisterApplicationFunction · 0.90
unloadApplicationFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…