It would be nice to handle errors in async middleware that are mounted on a route as well. Currently the following middleware error would not be handled by the error middleware
It looks like currently only the last argument to [method]Async is wrapped if it's a function. Would it be easy enough to do the same for all arguments?
It would be nice to handle errors in async middleware that are mounted on a route as well. Currently the following middleware error would not be handled by the error middleware
It looks like currently only the last argument to
[method]Async
is wrapped if it's a function. Would it be easy enough to do the same for all arguments?