MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / abortError

Function abortError

packages/agent-core/src/utils/abort.ts:1–5  ·  view source on GitHub ↗
(message = 'Aborted')

Source from the content-addressed store, hash-verified

1export function abortError(message = 'Aborted'): Error {
2 const error = new Error(message);
3 error.name = 'AbortError';
4 return error;
5}
6
7/**
8 * Marks an abort the user triggered deliberately (e.g. pressing ESC to

Callers 6

abort.test.tsFile · 0.90
turn.test.tsFile · 0.90
abortReasonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected