Skip to content

Commit

Permalink
perf: log commit fail stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
mstrk committed Sep 12, 2023
1 parent 1915b87 commit 0da5b90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ impl Git {
.output()?;

if !output.status.success() {
bail!("failed to commit changes");
bail!(format!("failed to commit changes: {}", String::from_utf8_lossy(&output.stderr)));
}

Ok(())
Expand Down

0 comments on commit 0da5b90

Please sign in to comment.