Catch Drizzle Error
Is there any way to handle errors that drizzle throws gracefully?
In the code that I provided, the query return Project or undefined, however if the query doesnt executed succesfully (it doesnt find an entry), it goes into the catch block and my not found error never fires. How can I distinguish what type of errors drizzle is throwing so that I can throw the the right type of error?
In the code that I provided, the query return Project or undefined, however if the query doesnt executed succesfully (it doesnt find an entry), it goes into the catch block and my not found error never fires. How can I distinguish what type of errors drizzle is throwing so that I can throw the the right type of error?
