let show_exception rescue anything
This commit is contained in:
parent
45e79fcf82
commit
489c6fb119
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue