Skip to content

formatConfigValidationError

formatConfigValidationError(error): string

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/config/schema.ts:1417

Render a friendly, path-scoped validation message from a Zod error. Each issue becomes a line - <path>: <message>, with (root) for top-level issues.

A failing union is expanded into its arms’ own issues rather than printed as itself, so the user reads the failing entry and field instead of Invalid input at the key.

ZodError

string