@@ -5043,7 +5043,10 @@ async fn shell_impl_async(
50435043 log::error!("Shell error: {}", err);
50445044 bail!("Shell error: {}", err);
50455045 }
5046− bail!("Shell command failed");
5046+ match output.status.code() {
5047+ Some(exit_code) => bail!("Shell command failed: status {}", exit_code),
5048+ None => bail!("Shell command failed"),
5049+ }
50475050 } else if !output.stderr.is_empty() {
50485051 log::debug!(
50495052 "Command printed to stderr: {}",