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

Function bindError

__tests__/ui-server.test.ts:75–77  ·  view source on GitHub ↗

A failed `listen()` as node reports it.

(code: string, port: number)

Source from the content-addressed store, hash-verified

73
74/** A failed `listen()` as node reports it. */
75function bindError(code: string, port: number): NodeJS.ErrnoException {
76 return Object.assign(new Error(`listen ${code}: 127.0.0.1:${port}`), { code, syscall: 'listen' });
77}
78
79/**
80 * Make `listen()` on `refused` fail with EACCES, the way Windows refuses a port

Callers 2

refuseListenOnFunction · 0.85
ui-server.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected