We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a725732 + e91271a commit f7ba6c4Copy full SHA for f7ba6c4
actionpack/lib/action_dispatch/middleware/executor.rb
@@ -22,7 +22,10 @@ def call(env)
22
23
returned = response << ::Rack::BodyProxy.new(response.pop) { state.complete! }
24
rescue => error
25
- @executor.error_reporter.report(error, handled: false, source: "application.action_dispatch")
+ request = ActionDispatch::Request.new env
26
+ backtrace_cleaner = request.get_header("action_dispatch.backtrace_cleaner")
27
+ wrapper = ExceptionWrapper.new(backtrace_cleaner, error)
28
+ @executor.error_reporter.report(wrapper.unwrapped_exception, handled: false, source: "application.action_dispatch")
29
raise
30
ensure
31
state.complete! unless returned
0 commit comments