hello! is it possible to catch errors in case DATABASE_URL is not on env/DATABASE_URL is wrongly formatted? it just crashes the whole app even if i catch the error
๐ 1
n
Nurul
10/03/2022, 3:57 PM
Hello @Jose Donato ๐
If the database_url is invalid or not present then Prisma Client wonโt be able to access the database. You would anyways need to fix the env variable and restart the app. Are you suggesting that we provide an error code which suggests that database_url is incorrectly formatted?
j
Jose Donato
10/04/2022, 10:05 AM
hey thanks for answering.
i guess, i think for apps that are not that dependent on the db, crashing the whole app because it cannot connect to the db is a bit silly
n
Nurul
10/04/2022, 11:33 AM
Do you mind creating a GitHub Issue so that our engineering team can have a look at it and see how we could improve the experience?
v
Vladi Stevanovic
10/10/2022, 10:53 AM
๐ Hello @Jose Donato have you perhaps had a chance to create a GH Issue? Please share the link when you create and we'll make sure to follow it!