Skip to content

Commit cdf638f

Browse files
committed
Improve hint for cmake not installed in Linux (code 127)
1 parent c4a60dd commit cdf638f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: src/lib.rs

+6
Original file line numberDiff line numberDiff line change
@@ -1074,6 +1074,12 @@ fn run(cmd: &mut Command, program: &str) {
10741074
Err(e) => fail(&format!("failed to execute command: {}", e)),
10751075
};
10761076
if !status.success() {
1077+
if status.code() == Some(127) {
1078+
fail(&format!(
1079+
"command did not execute successfully, got: {}, is `{}` not installed?",
1080+
status, program
1081+
));
1082+
}
10771083
fail(&format!(
10781084
"command did not execute successfully, got: {}",
10791085
status

0 commit comments

Comments
 (0)