aboutsummaryrefslogtreecommitdiff
path: root/lib/longboat
diff options
context:
space:
mode:
authorNat Lasseter <nat.lasseter@york.ac.uk>2020-06-25 13:23:37 +0100
committerNat Lasseter <nat.lasseter@york.ac.uk>2020-06-25 13:23:37 +0100
commit4b1f7c2c11d33e8adad696671ef82d13cb3d5168 (patch)
treeb46cd94adaf087838b88591fd9f6916a839d4fb5 /lib/longboat
parent5020bfd6cabb588dd34ff4171acac42c9b0e1945 (diff)
Print raider exceptions to stderr
Diffstat (limited to 'lib/longboat')
-rw-r--r--lib/longboat/raiders.rb5
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