Skip to content

Commit

Permalink
Fix test failing due to panic
Browse files Browse the repository at this point in the history
  • Loading branch information
cjpearce committed Apr 7, 2019
1 parent 3d11d76 commit 0c7bd12
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 0c7bd12

Please sign in to comment.