(error: Error)
| 224 | } |
| 225 | |
| 226 | function 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 |