lib/raven/rack.rb in sentry-raven-0.2 vs lib/raven/rack.rb in sentry-raven-0.3
- old
+ new
@@ -27,15 +27,15 @@
response = @app.call(env)
rescue Error => e
raise # Don't capture Raven errors
rescue Exception => e
evt = Event.capture_rack_exception(e, env)
- Raven.send(evt) if evt
+ Raven.send(evt)
raise
end
if env['rack.exception']
- evt = Event.capture_rack_exception(e, env)
+ evt = Event.capture_rack_exception(env['rack.exception'], env)
Raven.send(evt) if evt
end
response
end