Add exit code to command failed msg (#5898)
This commit is contained in:
parent
ea3293b4da
commit
af1157f37c
1 changed files with 4 additions and 1 deletions
|
@ -5043,7 +5043,10 @@ async fn shell_impl_async(
|
|||
log::error!("Shell error: {}", err);
|
||||
bail!("Shell error: {}", err);
|
||||
}
|
||||
bail!("Shell command failed");
|
||||
match output.status.code() {
|
||||
Some(exit_code) => bail!("Shell command failed: status {}", exit_code),
|
||||
None => bail!("Shell command failed"),
|
||||
}
|
||||
} else if !output.stderr.is_empty() {
|
||||
log::debug!(
|
||||
"Command printed to stderr: {}",
|
||||
|
|
Loading…
Add table
Reference in a new issue