Skip to content

Commit

Permalink
parser_json: Add EncodingError to rescue list for oj 3.x. fix #1866
Browse files Browse the repository at this point in the history
  • Loading branch information
repeatedly committed Mar 1, 2018
1 parent 9428766 commit e17471f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fluent/plugin/parser_json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def parse(text)
r = @load_proc.call(text)
time, record = convert_values(parse_time(r), r)
yield time, record
rescue @error_class
rescue @error_class, EncodingError # EncodingError is for oj 3.x or later
yield nil, nil
end

Expand Down

0 comments on commit e17471f

Please sign in to comment.