Listening for server-side next(err)
middleware rejections
#4997
Unanswered
nicholaswmin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi again,
I'd like to access the nexted
err
I send back to the client in another middleware so I can log them.I could obviously log before nexting, but I'd like to keep logging in one place, preferabbly a middleware.
The following would be ok:
Now, I have another middleware that logs stuff:
although I think an express-style error-handling middleware would be ideal.
Beta Was this translation helpful? Give feedback.
All reactions