MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / unwrapHandledError

Function unwrapHandledError

client/src/utils/handled-error.ts:19–23  ·  view source on GitHub ↗
(
  err: HandledError
)

Source from the content-addressed store, hash-verified

17}
18
19export function unwrapHandledError(
20 err: HandledError
21): ErrorData | Record<string, never> {
22 return handledErrorSymbol in err ? err[handledErrorSymbol] : {};
23}
24
25export function wrapHandledError(
26 err: Error,

Callers 3

errorHandlerSagaFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected