DEV Community

Discussion on: Central Error Handling in Express

Collapse
 
kopax profile image
Dimitri KOPRIWA

Hi and thanks for this article, I have tried to implement it and instead of having the errorMiddleware called when I throw new ErrorHandler(500) within my route, I have in the console: (node:16482) UnhandledPromiseRejectionWarning: Error: Server Error what part did I miss? thanks