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

Function normalizing

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

Source from the content-addressed store, hash-verified

116/** Wraps a reporter so it can only ever be handed a titled `Error`. */
117const normalizing =
118 (reporter: FrontendErrorReporter): FrontendErrorReporter =>
119 (error, context) => {
120 reporter(toReportableError(error, context), context);
121 };
122
123// ---------------------------------------------------------------------------
124// Reporters

Callers 2

Calls 1

toReportableErrorFunction · 0.85

Tested by

no test coverage detected