lib/zold/verbose_thread.rb in zold-0.11.5 vs lib/zold/verbose_thread.rb in zold-0.11.6

- old
+ new

@@ -29,13 +29,13 @@ class VerboseThread def initialize(log = Log::Quiet.new) @log = log end - def run + def run(safe = false) yield rescue StandardError => e @log.error("#{e.class.name}: #{e.message} #{e.backtrace.join("\n\t")}") - raise e + raise e unless safe end end end