MCPcopy
hub / github.com/CapSoftware/Cap / normalizeError

Function normalizeError

packages/recorder-core/src/recording-spool.ts:53–54  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

51export const RECORDING_SPOOL_HEARTBEAT_INTERVAL_MS = 15 * 1000;
52
53const normalizeError = (error: unknown) =>
54 error instanceof Error ? error : new Error(String(error));
55
56const requestToPromise = <T>(request: IDBRequest<T>) =>
57 new Promise<T>((resolve, reject) => {

Callers 4

requestToPromiseFunction · 0.85
transactionToPromiseFunction · 0.85
openDatabaseMethod · 0.85
enqueueMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected