Skip to content

Commit

Permalink
fix: hooks: fix binary not found message not stopping the spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
Milo123459 committed Nov 13, 2021
1 parent 01f8647 commit 6e980be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,8 @@ fn run_cmd(
if !dry {
let cmd_path_result = which::which(command_name);
if cmd_path_result.is_err() {
spinner.text(text);
spinner.error();
println!("{} Cannot find binary `{}`", "Fatal".red(), command_name);
std::process::exit(1);
}
Expand Down

0 comments on commit 6e980be

Please sign in to comment.