MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / exitWithError

Function exitWithError

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

Source from the content-addressed store, hash-verified

52 * through the React tree instead.
53 */
54export async function exitWithError(root: Root, message: string, beforeExit?: () => Promise<void>): Promise<never> {
55 return exitWithMessage(root, message, {
56 color: 'error',
57 beforeExit
58 });
59}
60
61/**
62 * 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