MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / writeStderr

Function writeStderr

src/bin/fatal-handler.ts:57–63  ·  view source on GitHub ↗

Best-effort synchronous stderr write that can never keep a doomed process alive.

(line: string)

Source from the content-addressed store, hash-verified

55
56/** Best-effort synchronous stderr write that can never keep a doomed process alive. */
57function writeStderr(line: string): void {
58 try {
59 fs.writeSync(2, line);
60 } catch {
61 /* stderr closed/gone — nothing more we can safely do */
62 }
63}
64
65/** Injectable seams so the wiring is testable without registering real handlers. */
66export interface FatalHandlerDeps {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected