-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fromRequestHandler
doesn't handle errors
#39
Comments
We could also deprecate the current |
Maybe we can overload the function and check if it is used with two or three parameters? I am not a big fan of V2 functions 😅 |
This is a good idea, I haven't thought of overloads, thanks for the suggestion!. I've created a PR, if you want to check it out. |
🚀 Feature request
Current Behavior
There is no way to handle an error returned by a middleware wrapped with
fromRequestHandler
, the error is just ignored in its implementation.Desired Behavior
I'd like to have a way to handle a possible error returned by a middleware.
Suggested Solution
In my codebase I have this helper:
Who does this impact? Who is this for?
People using Express middlewares developed by the community without
hyper-ts
in mind.Describe alternatives you've considered
Keep using the aforementioned function.
Your environment
The text was updated successfully, but these errors were encountered: