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

Function describeUnknown

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

Source from the content-addressed store, hash-verified

67
68/** The best sentence available for a value that carries no usable message. */
69const describeUnknown = (value: unknown, context: FrontendErrorContext): string =>
70 messageFromUnknown(value, context.message ?? contextLabel(context));
71
72/** Effect's tagged errors identify themselves by `_tag`, not by `name`. */
73const 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