jamesgeer / conf-twitter-bot

A Twitter Bot to post about academic papers
MIT License
4 stars 0 forks source link

Prisma handling exceptions and errors #80

Closed jamesgeer closed 1 year ago

jamesgeer commented 1 year ago

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