Show command which failed

This commit is contained in:
Guillaume Gomez 2023-11-24 22:23:08 +01:00
parent ff04316243
commit 53b2759bef

View File

@ -45,6 +45,8 @@ fn check_exit_status(
.unwrap_or_default(),
exit_status.code()
);
let input = input.iter().map(|i| i.as_ref()).collect::<Vec<&OsStr>>();
eprintln!("Command `{:?}` failed", input);
if let Some(output) = output {
unsafe {
let stdout = std::str::from_utf8_unchecked(&output.stdout);