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

Function describeUnknown

packages/react/src/api/error-reporting.tsx:60–61  ·  view source on GitHub ↗
(value: unknown, context: FrontendErrorContext)

Source from the content-addressed store, hash-verified

58
59/** The best sentence available for a value that carries no usable message. */
60const describeUnknown = (value: unknown, context: FrontendErrorContext): string =>
61 messageFromUnknown(value, context.message ?? contextLabel(context));
62
63/** Effect's tagged errors identify themselves by `_tag`, not by `name`. */
64const nameFromUnknown = (value: unknown, fallback: string): string =>

Callers 3

errorFromValueFunction · 0.85
errorFromCauseFunction · 0.85
toReportableErrorFunction · 0.85

Calls 2

contextLabelFunction · 0.85
messageFromUnknownFunction · 0.70

Tested by

no test coverage detected