Skip to content

Commit 584e1c1

Browse files
authored
Merge pull request #195 from meowtec/feat/improve-fail-hint
Improve hint for cmake not installed in Linux (code 127)
2 parents f89c724 + cdf638f commit 584e1c1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib.rs

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

0 commit comments

Comments
 (0)