Need to improve error handling of model methods, for example: trying to delete a tweet that does not exist should return a 'not found' error, however, Prisma seems to just return 'undefined' which is not specific enough.
Having more specific errors is helpful for the user and makes it easier to write tests and should mean models have consistent return types.
Need to improve error handling of model methods, for example: trying to delete a tweet that does not exist should return a 'not found' error, however, Prisma seems to just return 'undefined' which is not specific enough.
Having more specific errors is helpful for the user and makes it easier to write tests and should mean models have consistent return types.
Prisma documentation: Handling exceptions and errors Error message reference