MCPcopy
hub / github.com/AutoMaker-Org/automaker / isFileDescriptorError

Function isFileDescriptorError

libs/platform/src/secure-fs.ts:91–96  ·  view source on GitHub ↗

* Check if an error is a file descriptor exhaustion error

(error: unknown)

Source from the content-addressed store, hash-verified

89 * Check if an error is a file descriptor exhaustion error
90 */
91function isFileDescriptorError(error: unknown): boolean {
92 if (error && typeof error === 'object' && 'code' in error) {
93 return FILE_DESCRIPTOR_ERROR_CODES.has((error as { code: string }).code);
94 }
95 return false;
96}
97
98/**
99 * Calculate delay with exponential backoff and jitter

Callers 1

executeWithRetryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected