diff --git a/src/main.rs b/src/main.rs index ecbcce4..4b60971 100644 --- a/src/main.rs +++ b/src/main.rs @@ -355,8 +355,8 @@ fn main() { let ast = match parse(&input_file) { Ok(x) => x, Err(x) => { - print!("{:#?}\n", x); - std::process::exit(1); + println!("{:#?}", x); + exit(1); }, };