From d2052cd2a32628af85181dab1cc1eb7fcba30793 Mon Sep 17 00:00:00 2001 From: Jakub Doka Date: Fri, 8 Nov 2024 21:53:24 +0100 Subject: [PATCH] adding back the exit code --- lang/src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lang/src/main.rs b/lang/src/main.rs index 5e9221f..40eb1c8 100644 --- a/lang/src/main.rs +++ b/lang/src/main.rs @@ -18,6 +18,9 @@ fn main() { let mut out = Vec::new(); match run(&mut out) { Ok(_) => std::io::stdout().write_all(&out).unwrap(), - Err(_) => std::io::stderr().write_all(&out).unwrap(), + Err(_) => { + std::io::stderr().write_all(&out).unwrap(); + std::process::exit(1); + } } }