Skip to content

Commit 0c7bd12

Browse files
committed
Fix test failing due to panic
1 parent 3d11d76 commit 0c7bd12

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/main.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,11 @@ fn main() {
5757
}
5858

5959
if let Some(matches) = matches.subcommand_matches("run") {
60-
run(matches.clone()).unwrap();
60+
run(matches.clone()).unwrap_or_else(|_| std::process::exit(1));
6161
}
6262

6363
if matches.subcommand_matches("verify").is_some() {
64-
match verify(None) {
65-
Ok(_) => {}
66-
Err(_) => std::process::exit(1),
67-
}
64+
verify(None).unwrap_or_else(|_| std::process::exit(1));
6865
}
6966

7067
if matches.subcommand_matches("watch").is_some() {

0 commit comments

Comments
 (0)