koajs / joi-router

Configurable, input and output validated routing for koa
MIT License
450 stars 96 forks source link

fix: errorHandler calls next() twice when route handler throws an error #108

Closed mdpx closed 3 years ago

mdpx commented 4 years ago

also added two test cases and all passed. fixes #97 fixes #107

AdeebAli commented 3 years ago

Could this change be merged? @mdpx @AlexandreLoub? Also running into this issue.

mdpx commented 3 years ago

@AdeebAli I think yes but I have no permission. @aheckmann is the guy. if you're in urgent, just manually replace the single joi-router.js file in node_modules with my fork.