aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2024-10-11 03:55:31 +0100
committerAkshay <[email protected]>2024-10-11 03:55:31 +0100
commit63c606d17095e336ee0deeedb30f94a490ec4059 (patch)
tree8e64f9058306fd81cde35b95eacd40ac3ab99c97 /src/main.rs
parentb84a1a3598f68c1575a92bcd2ba68e9d1322256d (diff)
add analysis phase
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index 8f63ca2..193d725 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -73,8 +73,8 @@ fn try_consume_stdin() -> std::io::Result<String> {
73fn main() { 73fn main() {
74 let cli: Cli = argh::from_env(); 74 let cli: Cli = argh::from_env();
75 75
76 tbsp::evaluate(&cli.file(), &cli.program(), cli.language()).unwrap_or_else(|e| { 76 if let Err(e) = tbsp::evaluate(&cli.file(), &cli.program(), cli.language()) {
77 eprintln!("{e:?}"); 77 eprintln!("{e}");
78 std::process::exit(-1); 78 std::process::exit(e.code());
79 }); 79 };
80} 80}