(error: any)
| 842 | } |
| 843 | |
| 844 | function 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 | } |
no outgoing calls
no test coverage detected