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 738ca35 + 1966806 commit e56a514Copy full SHA for e56a514
actionpack/lib/action_controller/metal/instrumentation.rb
@@ -35,6 +35,9 @@ def process_action(*)
35
payload[:response] = response
36
payload[:status] = response.status
37
result
38
+ rescue => error
39
+ payload[:status] = ActionDispatch::ExceptionWrapper.status_code_for_exception(error.class.name)
40
+ raise
41
ensure
42
append_info_to_payload(payload)
43
end
0 commit comments