1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Raise the same exception the code is handling

This commit is contained in:
Santiago Pastorino 2012-09-21 19:05:12 -03:00
parent 0e288ec98c
commit 008eaebb56

View file

@ -126,7 +126,7 @@ module ActiveSupport
end
def handle_exception(job, exception)
raise unless @logger
raise exception unless @logger
@logger.error "Job Error: #{exception.message}\n#{exception.backtrace.join("\n")}"
end
end