MCPcopy
hub / github.com/angular/angular / errorToString

Function errorToString

packages/service-worker/worker/src/error.ts:13–19  ·  view source on GitHub ↗
(error: any)

Source from the content-addressed store, hash-verified

11}
12
13export function errorToString(error: any): string {
14 if (error instanceof Error) {
15 return `${error.message}\n${error.stack}`;
16 } else {
17 return `${error}`;
18 }
19}
20
21export class SwUnrecoverableStateError extends SwCriticalError {
22 readonly isUnrecoverableState: boolean = true;

Callers 5

ensureInitializedMethod · 0.90
versionFailedMethod · 0.90
checkForUpdateMethod · 0.90
fetchAndCacheOnceFunction · 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…