izaakschroeder / express-context

Contextualize middleware.
0 stars 0 forks source link

Support error middleware #11

Open knownasilya opened 9 years ago

knownasilya commented 9 years ago

function (err, res, req, next) signature.

izaakschroeder commented 9 years ago

Good point. You can't (yet) contextualize error middleware, since e.g. https://github.com/izaakschroeder/express-context/blob/master/lib/contextualize.js#L84 never checks for the 4 argument signature. I can add support for this though.