mirror of
https://github.com/sharkdp/bat.git
synced 2025-08-10 08:08:07 +02:00
Check result of read_until, and return Error if 0, which indicates EOF was found before delimeter.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user