diff --git a/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb b/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb index 6bc5876b6ccd1d311b2814e827c1e5813bc9be7e..3f1cf148256607466f9151f887e220df90034978 100644 --- a/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb +++ b/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb @@ -15,7 +15,7 @@ def initialize(app, routes_app = nil) def call(env) begin - response = (_, headers, body = @app.call(env)) + status, headers, body = @app.call(env) if headers['X-Cascade'] == 'pass' body.close if body.respond_to?(:close) @@ -25,7 +25,7 @@ def call(env) raise exception if env['action_dispatch.show_exceptions'] == false end - exception ? render_exception(env, exception) : response + exception ? render_exception(env, exception) : [status, headers, body] end private