diff --git a/lib/sidekiq/middleware/server/exception_handler.rb b/lib/sidekiq/middleware/server/exception_handler.rb index 6a38bccb..33be0d87 100644 --- a/lib/sidekiq/middleware/server/exception_handler.rb +++ b/lib/sidekiq/middleware/server/exception_handler.rb @@ -30,7 +30,7 @@ module Sidekiq end def send_to_exception_notifier(msg, ex) - ::ExceptionNotifier::Notifier.background_exception_notification(e, :data => { :message => msg }) + ::ExceptionNotifier::Notifier.background_exception_notification(ex, :data => { :message => msg }) end end end