Closed ledbettj closed 10 years ago
Yes, we must address failures!
It should have been taken care of there: https://github.com/ysbaddaden/prax/blob/master/lib/racker/handler.rb#L25
But the app is now built in Racker::Server and passed to the handler. So we must rescue there, too: https://github.com/ysbaddaden/prax/blob/master/lib/racker/server.rb#L38
That is now be addressed in unstable branch.
Thanks!
If an application's config.ru is malformed (for example, missing a
run
ormap
),Rack::Builder.parse_file()
throws an exception.There's no user feedback in this case except the following repeatedly dumped to the log file:
In my case I made a stupid typo in my rackup file and ended up with a 3.5GB log file containing the above over and over.