(error: unknown)
| 316 | } |
| 317 | |
| 318 | function 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 | |
| 324 | function formatIssuePath(path: readonly PropertyKey[]): string { |
| 325 | if (path.length === 0) return '<root>'; |
no outgoing calls
no test coverage detected