lib/airbrake.rb in airbrake-5.1.0 vs lib/airbrake.rb in airbrake-5.2.0

- old
+ new

@@ -1,6 +1,7 @@ require 'shellwords' +require 'English' # Core library that sends notices. # See: https://github.com/airbrake/airbrake-ruby require 'airbrake-ruby' @@ -42,6 +43,11 @@ # @since 5.1.0 def add_rack_builder(&block) Airbrake::Rack::NoticeBuilder.add_builder(&block) end end +end + +# Notify of unhandled exceptions, if there were any, but ignore SystemExit. +at_exit do + Airbrake.notify_sync($ERROR_INFO) if $ERROR_INFO end