MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / normalizing

Function normalizing

packages/react/src/api/error-reporting.tsx:127–130  ·  view source on GitHub ↗
(reporter: FrontendErrorReporter)

Source from the content-addressed store, hash-verified

125/** Wraps a reporter so it can only ever be handed a titled `Error`. */
126const normalizing =
127 (reporter: FrontendErrorReporter): FrontendErrorReporter =>
128 (error, context) => {
129 reporter(toReportableError(error, context), context);
130 };
131
132// ---------------------------------------------------------------------------
133// Reporters

Callers 2

Calls 1

toReportableErrorFunction · 0.85

Tested by

no test coverage detected