lib/mnemosyne/middleware/sidekiq.rb in mnemosyne-ruby-1.2.1 vs lib/mnemosyne/middleware/sidekiq.rb in mnemosyne-ruby-1.3.0
- old
+ new
@@ -20,9 +20,12 @@
meta: meta
trace.start! if trace
yield
+ rescue StandardError, LoadError, SyntaxError => err # rubocop:disable RescueException
+ trace.attach_error(err)
+ raise
ensure
if trace
trace.submit
trace.release
end