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

Function messageFromExit

packages/react/src/api/error-reporting.tsx:62–66  ·  view source on GitHub ↗
(exit: Exit.Exit<unknown, unknown>, fallback: string)

Source from the content-addressed store, hash-verified

60 });
61
62export const messageFromExit = (exit: Exit.Exit<unknown, unknown>, fallback: string): string =>
63 Option.match(Option.flatMap(Exit.findErrorOption(exit), decodeErrorMessage), {
64 onNone: () => fallback,
65 onSome: ({ message }) => message,
66 });
67
68export const reportExitFailure = (
69 report: FrontendErrorReporter,

Callers 15

handleSaveFunction · 0.90
handleCheckFunction · 0.90
handleReconnectFunction · 0.90
handleRemoveFunction · 0.90
handleSubmitFunction · 0.90
handleValidateFunction · 0.90
handlePickIdentityFunction · 0.90
handleOAuthConnectFunction · 0.90
handleDcrConnectFunction · 0.90
handlePreviewFunction · 0.90
handleSaveFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected