mirror of
https://github.com/sharkdp/bat
synced 2026-08-09 19:51:48 +00:00
Check result of read_until, and return Error if 0, which indicates EOF was found before delimeter.
This commit is contained in:
@@ -63,6 +63,9 @@ mod errors {
|
||||
SyntectError(::syntect::LoadingError);
|
||||
ParseIntError(::std::num::ParseIntError);
|
||||
}
|
||||
errors {
|
||||
ImmediateEOF
|
||||
}
|
||||
}
|
||||
|
||||
pub fn handle_error(error: &Error) {
|
||||
|
||||
Reference in New Issue
Block a user