ryonryon / trello-clone

0 stars 0 forks source link

[backend] Establish an error handling with fastify #27

Open kei95 opened 2 years ago

kei95 commented 2 years ago

According to the documentation, fastify has its own handle which returns 500 with Internal error. In order to consolidate our error handling in general, we will need to set up error handling logic across the app by setting up hooks.

Docs: https://www.fastify.io/docs/latest/Reference/Errors/#errors-in-fastify