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

Function isErrno

apps/kimi-code/src/tui/goal-queue-store.ts:263–265  ·  view source on GitHub ↗
(error: unknown, code: string)

Source from the content-addressed store, hash-verified

261}
262
263function isErrno(error: unknown, code: string): boolean {
264 return isRecord(error) && error['code'] === code;
265}
266
267function describeError(error: unknown): string {
268 return error instanceof Error ? error.message : String(error);

Callers 1

readQueueFileFunction · 0.85

Calls 1

isRecordFunction · 0.70

Tested by

no test coverage detected