MCPcopy Create free account
hub / github.com/getsentry/XcodeBuildMCP / isBrokenPipeLikeError

Function isBrokenPipeLikeError

src/server/mcp-lifecycle.ts:195–202  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

193}
194
195function isBrokenPipeLikeError(error: unknown): boolean {
196 if (!(error instanceof Error)) {
197 return false;
198 }
199
200 const code = String((error as NodeJS.ErrnoException).code ?? '');
201 return code === 'EPIPE' || code === 'ERR_STREAM_DESTROYED';
202}
203
204async function sampleMcpPeerProcesses(
205 commandExecutor: CommandExecutor,

Callers 2

handleStdoutErrorFunction · 0.85
handleStderrErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected