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

Function cliError

source code/cli/exit.ts:21–26  ·  view source on GitHub ↗
(msg?: string)

Source from the content-addressed store, hash-verified

19
20/** Write an error message to stderr (if given) and exit with code 1. */
21export function cliError(msg?: string): never {
22 // biome-ignore lint/suspicious/noConsole: centralized CLI error output
23 if (msg) console.error(msg)
24 process.exit(1)
25 return undefined as never
26}
27
28/** Write a message to stdout (if given) and exit with code 0. */
29export function cliOk(msg?: string): never {

Callers 14

registerMcpAddCommandFunction · 0.85
registerMcpXaaIdpCommandFunction · 0.85
mcpServeHandlerFunction · 0.85
mcpRemoveHandlerFunction · 0.85
mcpGetHandlerFunction · 0.85
mcpAddJsonHandlerFunction · 0.85
mcpAddFromDesktopHandlerFunction · 0.85
handleMarketplaceErrorFunction · 0.85
marketplaceAddHandlerFunction · 0.85
pluginInstallHandlerFunction · 0.85
pluginUninstallHandlerFunction · 0.85
pluginEnableHandlerFunction · 0.85

Calls 1

errorMethod · 0.45

Tested by

no test coverage detected