From 3728cb164f2f4c12acc941b2930eb92cd52c2837 Mon Sep 17 00:00:00 2001 From: Richard Lee <14349+dlackty@users.noreply.github.com> Date: Mon, 28 Oct 2019 22:22:48 +0800 Subject: [PATCH] Properly show class names Signed-off-by: Richard Lee <14349+dlackty@users.noreply.github.com> --- 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