Skip to content

Commit

Permalink
Merge pull request #2671 from dlackty/time-error-class-name
Browse files Browse the repository at this point in the history
Properly show class names
  • Loading branch information
repeatedly authored Oct 29, 2019
2 parents 97113ba + 3728cb1 commit a9ec7fa
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 a9ec7fa

Please sign in to comment.