on master help sign in
Add exit code to command failed msg (#5898)
af1157flesleyrs
helix-term/src/commands.rs+4−1
@@ -5043,7 +5043,10 @@ async fn shell_impl_async(
5043 log::error!("Shell error: {}", err);
5043 log::error!("Shell error: {}", err);
5044 bail!("Shell error: {}", err);
5044 bail!("Shell error: {}", err);
5045 }
5045 }
5046+ match output.status.code() {
5047+ Some(exit_code) => bail!("Shell command failed: status {}", exit_code),
5046− bail!("Shell command failed");
5048+ None => bail!("Shell command failed"),
5049+ }
5047 } else if !output.stderr.is_empty() {
5050 } else if !output.stderr.is_empty() {
5048 log::debug!(
5051 log::debug!(
5049 "Command printed to stderr: {}",
5052 "Command printed to stderr: {}",