MCPcopy Create free account
hub / github.com/Noumena-Network/code / exitWithError

Function exitWithError

src/interactiveHelpers.tsx:56–61  ·  view source on GitHub ↗
(root: Root, message: string, beforeExit?: () => Promise<void>)

Source from the content-addressed store, hash-verified

54 * through the React tree instead.
55 */
56export async function exitWithError(root: Root, message: string, beforeExit?: () => Promise<void>): Promise<never> {
57 return exitWithMessage(root, message, {
58 color: 'error',
59 beforeExit
60 });
61}
62
63/**
64 * Render a message through Ink, then unmount and exit.

Callers

nothing calls this directly

Calls 1

exitWithMessageFunction · 0.85

Tested by

no test coverage detected