MCPcopy
hub / github.com/claude-code-best/claude-code / exitWithError

Function exitWithError

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

Source from the content-addressed store, hash-verified

68 * through the React tree instead.
69 */
70export async function exitWithError(root: Root, message: string, beforeExit?: () => Promise<void>): Promise<never> {
71 return exitWithMessage(root, message, { color: 'error', beforeExit });
72}
73
74/**
75 * 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