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

Function messageFromExit

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

Source from the content-addressed store, hash-verified

201 React.useContext(FrontendErrorReporterContext);
202
203export const messageFromExit = (exit: Exit.Exit<unknown, unknown>, fallback: string): string =>
204 Option.match(Option.flatMap(Exit.findErrorOption(exit), decodeErrorMessage), {
205 onNone: () => fallback,
206 onSome: ({ message }) => message,
207 });
208
209export const reportExitFailure = (
210 report: FrontendErrorReporter,

Callers 15

handleSaveFunction · 0.90
handleCheckFunction · 0.90
handleReconnectFunction · 0.90
handleRemoveFunction · 0.90
handleRemoveAppFunction · 0.90
AddAccountModalViewFunction · 0.90
handleSubmitFunction · 0.90
handleValidateFunction · 0.90
handlePickIdentityFunction · 0.90
handleOAuthConnectFunction · 0.90
handlePreviewFunction · 0.90
handleSaveFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected