Fix test failing due to panic
This commit is contained in:
parent
3d11d7685b
commit
0c7bd12372
|
@ -57,14 +57,11 @@ fn main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(matches) = matches.subcommand_matches("run") {
|
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() {
|
if matches.subcommand_matches("verify").is_some() {
|
||||||
match verify(None) {
|
verify(None).unwrap_or_else(|_| std::process::exit(1));
|
||||||
Ok(_) => {}
|
|
||||||
Err(_) => std::process::exit(1),
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if matches.subcommand_matches("watch").is_some() {
|
if matches.subcommand_matches("watch").is_some() {
|
||||||
|
|
Loading…
Reference in New Issue