MCPcopy
hub / github.com/prisma/prisma / formatErrors

Function formatErrors

packages/internals/src/engine-commands/getConfig.ts:195–199  ·  view source on GitHub ↗
(errors: GetConfigValidationError[])

Source from the content-addressed store, hash-verified

193}
194
195function formatErrors(errors: GetConfigValidationError[]) {
196 const formattedErrors = errors.map((e) => relativizePathInPSLError(e.message)).join('\n\n')
197 const errorCount = `Validation Error Count: ${errors.length}`
198 return `${formattedErrors}\n${errorCount}`
199}

Callers 1

getConfigFunction · 0.85

Calls 1

relativizePathInPSLErrorFunction · 0.90

Tested by

no test coverage detected