Open si14 opened 9 years ago
Thanks for the report.
For now, fnhouse is structured so that the handler must always be uniquely determined by the route, so I'm not sure passing the nil through is the right thing (but very open to discussing options). The simplest option for now seems to be to make the error message better, for which a PR would definitely be welcome.
Thanks again!
It's a common pattern for Ring handlers to return
nil
. However, when this is the case,coercion-middleware
explodes with non-informative message:It happens when anonymous function in
response-walker
getsnil
forresponse
. I don't know what would be better: to give more informative message there or to skip output coercion, assuming that there is anor
somewhere upstream and other handler will be called or 404 will be raised.Which approach is better and should I make a PR with fix?