diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2012-09-21 19:05:12 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2012-09-21 19:05:12 -0300 |
commit | 008eaebb562af7d95907b46e3d734312c795b2e0 (patch) | |
tree | edde88f1e73fec89aead5e8d9e68d9dbeff3d616 /activesupport | |
parent | 0e288ec98cb064479036dc7245903b7340051872 (diff) | |
download | rails-008eaebb562af7d95907b46e3d734312c795b2e0.tar.gz rails-008eaebb562af7d95907b46e3d734312c795b2e0.tar.bz2 rails-008eaebb562af7d95907b46e3d734312c795b2e0.zip |
Raise the same exception the code is handling
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/queueing.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/queueing.rb b/activesupport/lib/active_support/queueing.rb index 0a4ab05b78..7c352886f3 100644 --- a/activesupport/lib/active_support/queueing.rb +++ b/activesupport/lib/active_support/queueing.rb @@ -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 |