MCPcopy
hub / github.com/continuedev/continue / formatZodError

Function formatZodError

packages/config-yaml/src/load/unroll.ts:844–854  ·  view source on GitHub ↗
(error: any)

Source from the content-addressed store, hash-verified

842}
843
844function formatZodError(error: any): string {
845 if (error.errors && Array.isArray(error.errors)) {
846 return error.errors
847 .map((e: any) => {
848 const path = e.path.length > 0 ? `${e.path.join(".")}: ` : "";
849 return `${path}${e.message}`;
850 })
851 .join(", ");
852 }
853 return error.message || "Validation failed";
854}

Callers 3

parseConfigYamlFunction · 0.85
parseAssistantUnrolledFunction · 0.85
parseBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected