Skip to content

Commit

Permalink
Add exit code to command failed msg (#5898)
Browse files Browse the repository at this point in the history
  • Loading branch information
lesleyrs authored Feb 10, 2023
1 parent ea3293b commit af1157f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}",
Expand Down

0 comments on commit af1157f

Please sign in to comment.