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 Aug 15, 2024
1 parent c4a60dd commit cdf638f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1074,6 +1074,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
Expand Down

0 comments on commit cdf638f

Please sign in to comment.