| 10 | setClassName(ConfigValidationError, 'ConfigValidationError') |
| 11 | export class NoSchemaFoundError extends Error { |
| 12 | constructor() { |
| 13 | super( |
| 14 | `Could not find a ${bold( |
| 15 | 'schema.prisma', |
| 16 | )} file that is required for this command.\nYou can either provide it with ${green( |
| 17 | '--schema', |
| 18 | )}, set its path in the \`schema\` property in your Prisma Config file, or put it into the default location ${green( |
| 19 | './prisma/schema.prisma', |
| 20 | )} ${link('https://pris.ly/d/prisma-schema-location')}`, |
| 21 | ) |
| 22 | } |
| 23 | } |
| 24 | setClassName(NoSchemaFoundError, 'NoSchemaFoundError') |
| 25 | |