54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# File 'lib/yeller/rails.rb', line 54
def render_exception_with_yeller(env, exception)
Yeller::VerifyLog.render_exception_with_yeller!
begin
request = ::Rack::Request.new(env)
controller = env['action_controller.instance']
if controller
params = controller.send(:params)
Yeller::Rack.report(
exception,
:url => request.url,
:location => "#{controller.class.to_s}##{params[:action]}",
:custom_data => controller._yeller_custom_data
)
else
Yeller::VerifyLog.action_controller_instance_not_in_env!
Yeller::Rack.rescue_rack_exception(exception, env)
end
rescue => e
Yeller::VerifyLog.error_reporting_rails_error!(e)
end
render_exception_without_yeller(env, exception)
end
|