(errors: IntrospectSqlError[])
| 48 | } |
| 49 | |
| 50 | function renderErrors(errors: IntrospectSqlError[]) { |
| 51 | const lines: string[] = [`Errors while reading sql files:\n`] |
| 52 | for (const { fileName, message } of errors) { |
| 53 | lines.push(`In ${bold(path.relative(process.cwd(), fileName))}:`) |
| 54 | lines.push(message) |
| 55 | lines.push('') |
| 56 | } |
| 57 | return lines.join('\n') |
| 58 | } |