Skip to content

Commit 9c93a73

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

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: src/lib.rs

+7
Original file line numberDiff line numberDiff line change
@@ -1074,6 +1074,13 @@ 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,
1081+
program
1082+
));
1083+
}
10771084
fail(&format!(
10781085
"command did not execute successfully, got: {}",
10791086
status

0 commit comments

Comments
 (0)