Skip to content

Commit

Permalink
just tiny typo (grammar)
Browse files Browse the repository at this point in the history
Signed-off-by: Hearen <[email protected]>
  • Loading branch information
Hearen committed Apr 5, 2019
1 parent 0eec554 commit 001d662
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/fluent/plugin/filter_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def filter_with_time(tag, time, record)
return t, r
else
if @emit_invalid_record_to_error
router.emit_error_event(tag, time, record, Fluent::Plugin::Parser::ParserError.new("pattern not match with data '#{raw_value}'"))
router.emit_error_event(tag, time, record, Fluent::Plugin::Parser::ParserError.new("pattern not matched with data '#{raw_value}'"))
end
if @reserve_data
t = time
Expand Down
2 changes: 1 addition & 1 deletion test/plugin/test_filter_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ class UnmatchedPatternLogTest < self

def test_call_emit_error_event_when_pattern_is_mismached
flexmock(@d.instance.router).should_receive(:emit_error_event).
with(String, Integer, Hash, ParserError.new("pattern not match with data '#{INVALID_MESSAGE}'")).once
with(String, Integer, Hash, ParserError.new("pattern not matched with data '#{INVALID_MESSAGE}'")).once
@d.run do
@d.feed(@tag, Fluent::EventTime.now.to_i, {'message' => INVALID_MESSAGE})
end
Expand Down

0 comments on commit 001d662

Please sign in to comment.