MCPcopy Create free account
hub / github.com/anus-dev/ANUS / onError

Method onError

packages/core/src/tools/grep.ts:419–422  ·  view source on GitHub ↗
(err: Error)

Source from the content-addressed store, hash-verified

417 }
418 };
419 const onError = (err: Error) => {
420 cleanup();
421 reject(new Error(`Failed to start system grep: ${err.message}`));
422 };
423 const onClose = (code: number | null) => {
424 const stdoutData = Buffer.concat(stdoutChunks).toString('utf8');
425 const stderrData = Buffer.concat(stderrChunks)

Callers

nothing calls this directly

Calls 1

cleanupFunction · 0.50

Tested by

no test coverage detected