ltcc: exit with error code when typecheck or compilation fails

This commit is contained in:
Michael Sippel 2024-10-18 21:13:44 +02:00
parent b8535aa772
commit 5c2a610d31
Signed by: senvas
GPG key ID: F96CF119C34B64A6

View file

@ -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);
}
}
}