Skip to content

Commit 04c7f88

Browse files
committed
fix: use exit code 1 in case of error
1 parent 2fa18a0 commit 04c7f88

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ async fn main() {
3636
match handle_command(cli_opts).await {
3737
Ok(result) => println!("{}", result),
3838
Err(e) => {
39-
error!("{}", e.to_string())
39+
error!("{}", e.to_string());
40+
std::process::exit(1);
4041
}
4142
}
4243
}

0 commit comments

Comments
 (0)