Skip to content

Commit

Permalink
Fix SendEventJob's rescue_from callback
Browse files Browse the repository at this point in the history
  • Loading branch information
st0012 committed Nov 27, 2021
1 parent b501e27 commit 1efe494
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sentry-rails/app/jobs/sentry/send_event_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class SendEventJob < parent_job
discard_on ActiveJob::DeserializationError
else
# mimic what discard_on does for Rails 5.0
rescue_from ActiveJob::DeserializationError do
logger.error "Discarded #{self.class} due to a #{exception}. The original exception was #{error.cause.inspect}."
rescue_from ActiveJob::DeserializationError do |exception|
logger.error "Discarded #{self.class} due to a #{exception}. The original exception was #{exception.cause.inspect}."
end
end

Expand Down

0 comments on commit 1efe494

Please sign in to comment.