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

Function messageFromExit

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

Source from the content-addressed store, hash-verified

210 React.useContext(FrontendErrorReporterContext);
211
212export const messageFromExit = (exit: Exit.Exit<unknown, unknown>, fallback: string): string =>
213 Option.match(Option.flatMap(Exit.findErrorOption(exit), decodeErrorMessage), {
214 onNone: () => fallback,
215 onSome: ({ message }) => message,
216 });
217
218export const reportExitFailure = (
219 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