MCPcopy
hub / github.com/prisma/prisma / renderErrors

Function renderErrors

packages/cli/src/generate/introspectSql.ts:50–58  ·  view source on GitHub ↗
(errors: IntrospectSqlError[])

Source from the content-addressed store, hash-verified

48}
49
50function 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}

Callers 1

introspectSqlFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected