diff options
-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 |