Open Alfred-Onuada opened 5 months ago
This is a generic function it will be the one place to handle all API related errors
so in every route in the catch block you simply call this function with the current error and the response object
This is a generic function it will be the one place to handle all API related errors
so in every route in the catch block you simply call this function with the current error and the response object