Skip to content

Commit 21f4c6f

Browse files
meowtectgross35
authored andcommitted
Improve hint for cmake not installed in Linux (code 127)
1 parent b5a2ed6 commit 21f4c6f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,6 +1068,13 @@ fn run(cmd: &mut Command, program: &str) {
10681068
Err(e) => fail(&format!("failed to execute command: {}", e)),
10691069
};
10701070
if !status.success() {
1071+
if status.code() == Some(127) {
1072+
fail(&format!(
1073+
"command did not execute successfully, got: {}, is `{}` not installed?",
1074+
status,
1075+
program
1076+
));
1077+
}
10711078
fail(&format!(
10721079
"command did not execute successfully, got: {}",
10731080
status

0 commit comments

Comments
 (0)