mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Input: Further small changes to error handling
Calling Error() in an input reader now automatically will disable the reader and return a failure in the Update/Heartbeat calls. Also adds more tests. Addresses BIT-1181
This commit is contained in:
parent
6b9abe85a7
commit
c8e1a39758
7 changed files with 89 additions and 7 deletions
|
@ -1,4 +1,6 @@
|
|||
warning: ../input.log/Input::READER_ASCII: String 'l' contained no parseable number
|
||||
warning: ../input.log/Input::READER_ASCII: Could not convert line ' l' to Val. Ignoring line.
|
||||
warning: ../input.log/Input::READER_ASCII: String 'l' contained no parseable number
|
||||
warning: ../input.log/Input::READER_ASCII: Could not convert line ' l' to Val. Ignoring line.
|
||||
received termination signal
|
||||
>>>
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
Event, String 'l' contained no parseable number, Reporter::WARNING
|
||||
Event, Could not convert line '\x09l' to Val. Ignoring line., Reporter::WARNING
|
||||
TableErrorEvent, String 'l' contained no parseable number, Reporter::WARNING
|
||||
TableErrorEvent, Could not convert line '\x09l' to Val. Ignoring line., Reporter::WARNING
|
||||
{
|
||||
[] = [c=5]
|
||||
}
|
||||
EventErrorEvent, String 'l' contained no parseable number, Reporter::WARNING
|
||||
EventErrorEvent, Could not convert line '\x09l' to Val. Ignoring line., Reporter::WARNING
|
||||
Event, [c=5]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue