diff --git a/src/lib.rs b/src/lib.rs index 0f9b89a..769816c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1075,6 +1075,12 @@ fn run(cmd: &mut Command, program: &str) { Err(e) => fail(&format!("failed to execute command: {}", e)), }; if !status.success() { + if status.code() == Some(127) { + fail(&format!( + "command did not execute successfully, got: {}, is `{}` not installed?", + status, program + )); + } fail(&format!( "command did not execute successfully, got: {}", status