diff options
author | Nat Lasseter <nat.lasseter@york.ac.uk> | 2020-06-25 13:23:37 +0100 |
---|---|---|
committer | Nat Lasseter <nat.lasseter@york.ac.uk> | 2020-06-25 13:23:37 +0100 |
commit | 4b1f7c2c11d33e8adad696671ef82d13cb3d5168 (patch) | |
tree | b46cd94adaf087838b88591fd9f6916a839d4fb5 | |
parent | 5020bfd6cabb588dd34ff4171acac42c9b0e1945 (diff) |
Print raider exceptions to stderr
-rw-r--r-- | lib/longboat/raiders.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/longboat/raiders.rb b/lib/longboat/raiders.rb index 2740570..b77066e 100644 --- a/lib/longboat/raiders.rb +++ b/lib/longboat/raiders.rb @@ -21,7 +21,6 @@ module Longboat end def raid! - puts "RAID" @raiders.each do |name, raider| @collector.begin! @@ -42,6 +41,10 @@ module Longboat @collector.commit! rescue Exception => e @collector.abort! + + $stderr.puts "[ERROR] Caught exception from raider: #{name}" + $stderr.puts "[ERROR] Aborted collector transaction" + $stderr.puts "[ERROR] Exception reads: \"#{e.message}\"" end end end |