diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 8 |
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> { | |||
73 | fn main() { | 73 | fn 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 | } |