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

Function onError

packages/cli/src/utils/readStdin.ts:37–40  ·  view source on GitHub ↗
(err: Error)

Source from the content-addressed store, hash-verified

35 };
36
37 const onError = (err: Error) => {
38 cleanup();
39 reject(err);
40 };
41
42 const cleanup = () => {
43 process.stdin.removeListener('readable', onReadable);

Callers

nothing calls this directly

Calls 1

cleanupFunction · 0.70

Tested by

no test coverage detected