(errors: string[])
| 193 | |
| 194 | // Re-exported for use in loader/saver error formatting. |
| 195 | export function formatValidationErrors(errors: string[]): string { |
| 196 | if (errors.length === 0) return ''; |
| 197 | let out = 'Validation failed with ' + errors.length + ' error(s):\n'; |
| 198 | for (let i = 0; i < errors.length; i++) { |
| 199 | out = out + ' - ' + errors[i] + '\n'; |
| 200 | } |
| 201 | return out; |
| 202 | } |
no outgoing calls
no test coverage detected