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

Function cliError

src/cli/exit.ts:19–23  ·  view source on GitHub ↗
(msg?: string)

Source from the content-addressed store, hash-verified

17
18/** Write an error message to stderr (if given) and exit with code 1. */
19export function cliError(msg?: string): never {
20 if (msg) console.error(msg)
21 process.exit(1)
22 return undefined as never
23}
24
25/** Write a message to stdout (if given) and exit with code 0. */
26export 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.65

Tested by

no test coverage detected