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:
Johanna Amann 2016-07-25 15:35:46 -07:00
parent 6b9abe85a7
commit c8e1a39758
7 changed files with 89 additions and 7 deletions

View file

@ -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
>>>

View file

@ -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]