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

Function isFileNotFound

packages/agent-core/src/mcp/config-loader.ts:144–146  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

142}
143
144function isFileNotFound(error: unknown): boolean {
145 return getErrorCode(error) === 'ENOENT';
146}
147
148function isPathMissing(error: unknown): boolean {
149 const code = getErrorCode(error);

Callers 1

readMcpJsonFunction · 0.70

Calls 1

getErrorCodeFunction · 0.70

Tested by

no test coverage detected