Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Override Rack::ShowExceptions#pretty to set custom template #1377
This looks good to me.
In my opinion, if the rack pr will be accepted, it means that the way is standard for defining custom template in any sub frameworks, but our current issue should be considered separately from that.
I also thought about defining the
Sinatra::ShowException class as a completely unique class apart from those of rack, like ActionDispatch::ShowExceptions
However our exception handling depends on
env['rack.errors'], so at least at the moment we should inherit and extend
Rack :: ShowExceptions.