MCPcopy
hub / github.com/colbymchenry/codegraph / errno

Function errno

__tests__/daemon-socket-fallback.test.ts:66–70  ·  view source on GitHub ↗

Build an ErrnoException carrying a specific code, like a real listen() error.

(code: string)

Source from the content-addressed store, hash-verified

64
65/** Build an ErrnoException carrying a specific code, like a real listen() error. */
66function errno(code: string): NodeJS.ErrnoException {
67 const e = new Error(`listen ${code}`) as NodeJS.ErrnoException;
68 e.code = code;
69 return e;
70}
71
72describe('getDaemonSocketCandidates (#997)', () => {
73 it.runIf(POSIX)('returns [in-project, tmpdir] for a normal short path', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected