Skip to content

zod-envkit


formatZodError(err): string

Defined in: index.ts:119

Format ZodError into a human-friendly multi-line message (one issue per line).

Parameters

err

ZodError

Returns

string

Example

ts
console.error("Invalid environment:\n" + formatZodError(err));

Since

1.0.0

Released under the MIT License.