mirror of https://github.com/helix-editor/helix
Add exit code to command failed msg (#5898)
parent
ea3293b4da
commit
af1157f37c
|
@ -5043,7 +5043,10 @@ async fn shell_impl_async(
|
||||||
log::error!("Shell error: {}", err);
|
log::error!("Shell error: {}", err);
|
||||||
bail!("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() {
|
} else if !output.stderr.is_empty() {
|
||||||
log::debug!(
|
log::debug!(
|
||||||
"Command printed to stderr: {}",
|
"Command printed to stderr: {}",
|
||||||
|
|
Loading…
Reference in New Issue