A failed `listen()` as node reports it.
(code: string, port: number)
| 73 | |
| 74 | /** A failed `listen()` as node reports it. */ |
| 75 | function 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 |
no outgoing calls
no test coverage detected