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

Function exitWithError

source code/utils/process.ts:40–45  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

38// Write error to stderr and exit with code 1. Consolidates the
39// console.error + process.exit(1) pattern used in entrypoint fast-paths.
40export function exitWithError(message: string): never {
41 // biome-ignore lint/suspicious/noConsole:: intentional console output
42 console.error(message)
43 // eslint-disable-next-line custom-rules/no-process-exit
44 process.exit(1)
45}
46
47// Wait for a stdin-like stream to close, but give up after ms if no data ever
48// arrives. First data chunk cancels the timeout — after that, wait for end

Callers 2

runFunction · 0.50
mainFunction · 0.50

Calls 1

errorMethod · 0.45

Tested by

no test coverage detected