on master help sign in
Add exit code to command failed msg (#5898)
commitaf1157f37c04e158b96f3e2da7c641356b2219dc authorlesleyrs <19632758+lesleyrs@users.noreply.github.com> dateFri 10 Feb 2023, 18:56 (4 years ago) parentea3293b
1 file changed+4−1
helix-term/src/commands.rs+4−1
helix-term/src/commands.rs+4−1
@@ -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: {}",