mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-25 18:13:52 +03:00
Improve wrong db provider error message (#2192)
This commit is contained in:
parent
6aafec4ddf
commit
ee2c57cb2b
@ -159,7 +159,7 @@ validateOnlyEmailOrUsernameAndPasswordAuthIsUsed spec =
|
|||||||
validateDbIsPostgresIfPgBossUsed :: AppSpec -> [ValidationError]
|
validateDbIsPostgresIfPgBossUsed :: AppSpec -> [ValidationError]
|
||||||
validateDbIsPostgresIfPgBossUsed spec =
|
validateDbIsPostgresIfPgBossUsed spec =
|
||||||
[ GenericValidationError
|
[ GenericValidationError
|
||||||
"The database provider in the schema.prisma file must be \"postgres\" since there are jobs with executor set to PgBoss."
|
"The database provider in the schema.prisma file must be \"postgresql\" since there are jobs with executor set to PgBoss."
|
||||||
| isPgBossJobExecutorUsed spec && not (isPostgresUsed spec)
|
| isPgBossJobExecutorUsed spec && not (isPostgresUsed spec)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user