MCPcopy Create free account
hub / github.com/Noumena-Network/code / isEagainError

Function isEagainError

src/utils/ripgrep.ts:79–84  ·  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

77 * ripgrep tries to spawn too many threads.
78 */
79function isEagainError(stderr: string): boolean {
80 return (
81 stderr.includes('os error 11') ||
82 stderr.includes('Resource temporarily unavailable')
83 )
84}
85
86/**
87 * Custom error class for ripgrep timeouts.

Callers 1

handleResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected