aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index e03d338..ddad9b4 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -44,7 +44,10 @@ fn main() {
44 let evaled = eval_math_expression(&expr[..]); 44 let evaled = eval_math_expression(&expr[..]);
45 match evaled { 45 match evaled {
46 Ok(ans) => println!("{}", ans), 46 Ok(ans) => println!("{}", ans),
47 Err(e) => eprintln!("{}", handler(e)), 47 Err(e) => {
48 eprintln!("{}", handler(e));
49 std::process::exit(1);
50 },
48 }; 51 };
49 } else { 52 } else {
50 let config_builder = Builder::new(); 53 let config_builder = Builder::new();