(
/** @type {import('zod').ZodFormattedError<Map<string,string>,string>} */
errors,
)
| 4 | const _clientEnv = clientSchema.safeParse(clientEnv); |
| 5 | |
| 6 | export const formatErrors = ( |
| 7 | /** @type {import('zod').ZodFormattedError<Map<string,string>,string>} */ |
| 8 | errors, |
| 9 | ) => |
| 10 | Object.entries(errors) |
| 11 | .map(([name, value]) => { |
| 12 | if (value && "_errors" in value) |
| 13 | return `${name}: ${value._errors.join(", ")}\n`; |
| 14 | }) |
| 15 | .filter(Boolean); |
| 16 | |
| 17 | if (_clientEnv.success === false) { |
| 18 | console.error( |
no outgoing calls
no test coverage detected