MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isEagainError

Function isEagainError

src/utils/ripgrep.ts:87–92  ·  view source on GitHub ↗

* Check if an error is EAGAIN (resource temporarily unavailable). * This happens in resource-constrained environments (Docker, CI) when * ripgrep tries to spawn too many threads.

(stderr: string)

Source from the content-addressed store, hash-verified

85 * ripgrep tries to spawn too many threads.
86 */
87function isEagainError(stderr: string): boolean {
88 return (
89 stderr.includes('os error 11') ||
90 stderr.includes('Resource temporarily unavailable')
91 )
92}
93
94/**
95 * Custom error class for ripgrep timeouts.

Callers 1

handleResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected