Closed kukuminer closed 2 months ago
https://expressjs.com/en/guide/error-handling.html
https://www.npmjs.com/package/express-async-handler ^ use this one since express version <5
any async endpoints should have a handling endpoint to deal with rejected promises or errors on async endpoints
express 4 can handle errors on non-async endpoints but needs the library to deal with errors in async endpoints
https://expressjs.com/en/guide/error-handling.html
https://www.npmjs.com/package/express-async-handler ^ use this one since express version <5
any async endpoints should have a handling endpoint to deal with rejected promises or errors on async endpoints