aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNat Lasseter <nat.lasseter@york.ac.uk>2020-07-14 10:59:40 +0100
committerNat Lasseter <nat.lasseter@york.ac.uk>2020-07-14 10:59:40 +0100
commit0940a2469969403c7cb61f00bb5496da803ec8f3 (patch)
tree665c8356959d200576f12db471909af97d1d1f06 /lib
parent4b1f7c2c11d33e8adad696671ef82d13cb3d5168 (diff)
Typo fix @tranaction -> @transaction
Diffstat (limited to 'lib')
-rw-r--r--lib/longboat/collector.rb4
-rw-r--r--lib/longboat/raiders.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/longboat/collector.rb b/lib/longboat/collector.rb
index 01bb7f0..e217ab4 100644
--- a/lib/longboat/collector.rb
+++ b/lib/longboat/collector.rb
@@ -9,7 +9,7 @@ module Longboat
end
def report!(name, value, help: nil, type: nil, labels: {}, timestamp: Time.now)
- raise CollectorTransactionError if @tranaction.nil?
+ raise CollectorTransactionError if @transaction.nil?
name = prefix(name)
@@ -18,7 +18,7 @@ module Longboat
end
def redact!(name, labels: nil)
- raise CollectorTransactionError if @tranaction.nil?
+ raise CollectorTransactionError if @transaction.nil?
name = prefix(name)
diff --git a/lib/longboat/raiders.rb b/lib/longboat/raiders.rb
index b77066e..cd93858 100644
--- a/lib/longboat/raiders.rb
+++ b/lib/longboat/raiders.rb
@@ -44,7 +44,7 @@ module Longboat
$stderr.puts "[ERROR] Caught exception from raider: #{name}"
$stderr.puts "[ERROR] Aborted collector transaction"
- $stderr.puts "[ERROR] Exception reads: \"#{e.message}\""
+ $stderr.puts "[ERROR] Backtrace reads: \"#{e.backtrace}\""
end
end
end