diff --git a/ltcc/src/main.rs b/ltcc/src/main.rs index 6dd9cd9..f07337a 100644 --- a/ltcc/src/main.rs +++ b/ltcc/src/main.rs @@ -73,7 +73,7 @@ fn main() { eprintln!("----------------------------------"); eprintln!("{} ({} errors)", "Typecheck failed".bright_red().bold(), type_errs.len()); - return; + std::process::exit(-2); } } @@ -120,6 +120,7 @@ fn main() { ); eprintln!("=======\nParse Error: Abort\n"); + std::process::exit(-1); } } }