We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45ad2b4 commit f136f13Copy full SHA for f136f13
lib/resque/job.rb
@@ -160,7 +160,7 @@ def perform
160
# If an exception occurs during the job execution, look for an
161
# on_failure hook then re-raise.
162
rescue Object => e
163
- failure_hooks.each { |hook| job.send(hook, *job_args) }
+ failure_hooks.each { |hook| job.send(hook, e, *job_args) }
164
raise e
165
end
166
0 commit comments