Check result of read_until, and return Error if 0, which indicates EOF was found before delimeter.

This commit is contained in:
Reid Wagner authored and David Peter committed 2019-02-07 07:32:28 +01:00
1 parent f3f9f10f05
commit 61e888de7f
3 files changed
+15 -9

No files matched your search

+1
View File
@@ -43,6 +43,7 @@ impl<'b> Controller<'b> {
for input_file in &self.config.files {
match input_file.get_reader(&stdin) {
Err(Error(ErrorKind::ImmediateEOF, _)) => (),
Err(error) => {
handle_error(&error);
no_errors = false;