MCPcopy
hub / github.com/prisma/prisma / handleIndividualError

Function handleIndividualError

packages/cli/src/bin.ts:226–234  ·  view source on GitHub ↗
(error: Error)

Source from the content-addressed store, hash-verified

224}
225
226function handleIndividualError(error: Error): void {
227 if (Debug.enabled('prisma')) {
228 console.error(bold(red('Error: ')) + error.stack)
229 } else {
230 console.error(bold(red('Error: ')) + error.message)
231 }
232
233 process.exit(1)
234}
235
236/**
237 * Annotations for `pkg` so it bundles things correctly with yarn's hoisting

Callers 1

bin.tsFile · 0.85

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected