hello! is it possible to catch errors in case DATA...
# orm-help
j
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
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
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
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
๐Ÿ‘‹ 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!