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 committed Nov 23, 2023
1 parent c4a60dd commit 9c93a73
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 @@ -1074,6 +1074,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 9c93a73

Please sign in to comment.