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

Function findZodError

apps/kimi-code/src/cli/sub/doctor.ts:318–322  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

316}
317
318function findZodError(error: unknown): z.ZodError | undefined {
319 if (error instanceof z.ZodError) return error;
320 if (error instanceof Error && error.cause instanceof z.ZodError) return error.cause;
321 return undefined;
322}
323
324function formatIssuePath(path: readonly PropertyKey[]): string {
325 if (path.length === 0) return '<root>';

Callers 1

formatErrorMessageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected