handle more truncateion

This commit is contained in:
Robin Appelman 2023-03-26 14:45:36 +02:00
commit 2cb43e1872
2 changed files with 18 additions and 12 deletions

View file

@ -26,7 +26,7 @@ impl<'a> RawEvent<'a> {
fn event_parser(input: &str) -> Result<RawEvent> {
// println!("{}", input);
if input.len() < 24 {
return Err(Error::Skip);
return Err(Error::Incomplete);
}
let date = RawDate(&input[0..21]);