bucc-dev / bucc-notification

This repo contains excellently written code for the BUCC notification service
MIT License
0 stars 1 forks source link

Implement the handle error function #3

Open Alfred-Onuada opened 5 months ago

Alfred-Onuada commented 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