kukuminer / ta-app

Online application and selection platform for teaching assistants
0 stars 0 forks source link

async endpoint error handling endpoint #108

Closed kukuminer closed 2 months ago

kukuminer commented 6 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

kukuminer commented 6 months ago

express 4 can handle errors on non-async endpoints but needs the library to deal with errors in async endpoints