From 1e41887ca88af76c12bd5571fc3e73e8e764b93b Mon Sep 17 00:00:00 2001 From: Richard Lee Date: Mon, 28 Oct 2019 14:28:23 +0800 Subject: [PATCH] Properly show class names --- lib/fluent/time.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fluent/time.rb b/lib/fluent/time.rb index 52eed0b1f5..eba7a186fa 100644 --- a/lib/fluent/time.rb +++ b/lib/fluent/time.rb @@ -292,7 +292,7 @@ def initialize(type, localtime = nil, timezone = nil) def parse_unixtime(value) unless value.is_a?(String) || value.is_a?(Numeric) - raise TimeParseError, "value must be a string or a number: #{value}(value.class)" + raise TimeParseError, "value must be a string or a number: #{value}(#{value.class})" end if @cache1_key == value @@ -323,7 +323,7 @@ def parse_unixtime(value) ## parse_by_to_r (msec): 28.232856 sec def parse_float(value) unless value.is_a?(String) || value.is_a?(Numeric) - raise TimeParseError, "value must be a string or a number: #{value}(value.class)" + raise TimeParseError, "value must be a string or a number: #{value}(#{value.class})" end if @cache1_key == value