From 6e980beedc17db4d060ffad6f280977f6059f78b Mon Sep 17 00:00:00 2001 From: Milo <50248166+Milo123459@users.noreply.github.com> Date: Sat, 13 Nov 2021 00:06:15 +0000 Subject: [PATCH] fix: hooks: fix binary not found message not stopping the spinner --- src/cli.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cli.rs b/src/cli.rs index 88f886fe..2a99071b 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -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); }