let show_exception rescue anything

This commit is contained in:
Konstantin Haase 2011-02-19 17:34:03 +01:00
parent 45e79fcf82
commit 489c6fb119
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ module Sinatra
def call(env)
@app.call(env)
rescue StandardError, LoadError, SyntaxError => e
rescue Exception => e
errors, env["rack.errors"] = env["rack.errors"], @@eats_errors
if respond_to?(:prefers_plain_text?) and prefers_plain_text?(env)