diff options
author | NerdyPepper <[email protected]> | 2019-03-29 14:30:31 +0000 |
---|---|---|
committer | NerdyPepper <[email protected]> | 2019-03-29 14:30:31 +0000 |
commit | 0f4443d171ebde023fd0bd58b8499e363dd7f35f (patch) | |
tree | ed31de983cc7f32e469c0d41612821800c6b058e | |
parent | 8a61f0c0712b4553622379aa7c36a710a5701542 (diff) |
closes #2
-rw-r--r-- | src/main.rs | 5 |
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(); |