MCPcopy Index your code
hub / github.com/angular/angular / augmentRuntimeError

Function augmentRuntimeError

packages/core/src/render3/errors_di.ts:115–121  ·  view source on GitHub ↗
(error: any, source: string | null)

Source from the content-addressed store, hash-verified

113 * the resolution process, which eventually failed.
114 */
115export function augmentRuntimeError(error: any, source: string | null): Error {
116 const tokenPath: string[] = error[NG_TOKEN_PATH];
117 const errorCode = error[NG_RUNTIME_ERROR_CODE];
118 const message = error[NG_RUNTIME_ERROR_MESSAGE] || error.message;
119 error.message = formatErrorMessage(message, errorCode, tokenPath, source);
120 return error;
121}
122
123/**
124 * Creates an initial RuntimeError instance when a problem is detected.

Callers 2

getMethod · 0.90

Calls 1

formatErrorMessageFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…