diff options
| author | Chris Pearce <christopher.james.pearce@gmail.com> | 2019-04-07 18:43:05 +0100 |
|---|---|---|
| committer | Chris Pearce <christopher.james.pearce@gmail.com> | 2019-04-07 20:13:04 +0100 |
| commit | 0c7bd12372a8d154341f64b7587a7dafe07f5720 (patch) | |
| tree | 00adc81b919f9a90f529a35590a9ade7c49533ab /src/main.rs | |
| parent | 3d11d7685b2c3478c35a09fbb7543c03f5043bbe (diff) | |
Fix test failing due to panic
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs index eca1a03..d4bb64c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -57,14 +57,11 @@ fn main() { } if let Some(matches) = matches.subcommand_matches("run") { - run(matches.clone()).unwrap(); + run(matches.clone()).unwrap_or_else(|_| std::process::exit(1)); } if matches.subcommand_matches("verify").is_some() { - match verify(None) { - Ok(_) => {} - Err(_) => std::process::exit(1), - } + verify(None).unwrap_or_else(|_| std::process::exit(1)); } if matches.subcommand_matches("watch").is_some() { |
