(root: Root, message: string, beforeExit?: () => Promise<void>)
| 50 | * through the React tree instead. |
| 51 | */ |
| 52 | export 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. |
nothing calls this directly
no test coverage detected