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
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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