Skip to content

Commit

Permalink
Improve hint for cmake not installed in Linux (code 127)
Browse files Browse the repository at this point in the history
  • Loading branch information
meowtec authored and tgross35 committed Aug 15, 2024
1 parent b5a2ed6 commit 21f4c6f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1068,6 +1068,13 @@ 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
Expand Down

0 comments on commit 21f4c6f

Please sign in to comment.