MCPcopy Index your code
hub / github.com/codeaashu/claude-code / exitWithError

Function exitWithError

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

exitWithMessageFunction · 0.70

Tested by

no test coverage detected