diff --git a/src/parser.rs b/src/parser.rs index 34cadae..d50b741 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -115,13 +115,7 @@ pub(crate) mod root { Ok(Line::EndOfFile) => break, Ok(line) => lines.push(line), Err(e) => { - let ret = Self(lines); - eprintln!("{ret}"); - eprintln!("Error:{e}\n"); - eprint!("Remaining:"); - stream.for_each(|t| eprint!("{t}")); - eprintln!(); - return Err(Error::ParseError(ret, Box::new(e))); + return Err(Error::ParseError(Self(lines), Box::new(e))); } } }