Skip to content

Commit

Permalink
Merge branch 'main' into fix/typos
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Oct 19, 2023
2 parents 016d8a0 + 205cdbb commit 109f4b0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions git-cliff-core/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ pub fn run(
if output.status.success() {
Ok(str::from_utf8(&output.stdout)?.to_string())
} else {
for output in [output.stdout, output.stderr] {
let output = str::from_utf8(&output)?.to_string();
if !output.is_empty() {
log::error!("{}", output);
}
}
Err(IoError::new(
IoErrorKind::Other,
format!("command exited with {:?}", output.status),
Expand Down

0 comments on commit 109f4b0

Please sign in to comment.