aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2012-09-21 19:05:12 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2012-09-21 19:05:12 -0300
commit008eaebb562af7d95907b46e3d734312c795b2e0 (patch)
treeedde88f1e73fec89aead5e8d9e68d9dbeff3d616 /activesupport
parent0e288ec98cb064479036dc7245903b7340051872 (diff)
downloadrails-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.rb2
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