Skip to content

Commit

Permalink
Properly show class names
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Lee <14349+dlackty@users.noreply.github.com>
  • Loading branch information
dlackty committed Oct 28, 2019
1 parent 5e44deb commit 3728cb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fluent/time.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3728cb1

Please sign in to comment.