How to throw a error in a middleware and catch it on parent middleware
I have 2 middleware like the image, but A middleware is not catching anything and the Error is sending to client but it fails because a class is not serializable
g [Error]: The value [object Object] of type "object" cannot be parsed/serialized.

3 Replies
xenial-black•11h ago
might be a bug
can you please create a github issue including a complete reproducer project?
equal-aquaOP•11h ago
should I create the issue inside Router project ? I didnt see a Start project
xenial-black•11h ago
yes
router and start live in the same repo