Skip to content

Commit

Permalink
fix to return nil,nil instead of parse error, like RegexpParser
Browse files Browse the repository at this point in the history
  • Loading branch information
tagomoris committed Jun 12, 2012
1 parent f70fa37 commit e4a5d7e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/fluent/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ def call(text)
end

return time, record
rescue Yajl::ParseError
# TODO?
return nil, nil
end
end

Expand Down

0 comments on commit e4a5d7e

Please sign in to comment.