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:
parent
0e288ec98c
commit
008eaebb56
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue