Skip to content

Commit 53b2759

Browse files
Show command which failed
1 parent ff04316 commit 53b2759

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build_system/src/utils.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ fn check_exit_status(
4545
.unwrap_or_default(),
4646
exit_status.code()
4747
);
48+
let input = input.iter().map(|i| i.as_ref()).collect::<Vec<&OsStr>>();
49+
eprintln!("Command `{:?}` failed", input);
4850
if let Some(output) = output {
4951
unsafe {
5052
let stdout = std::str::from_utf8_unchecked(&output.stdout);

0 commit comments

Comments
 (0)