mirror of
https://codeberg.org/icewind/haze.git
synced 2026-10-01 08:44:09 +02:00
feat(git): Add repo context on git failures
This commit is contained in:
parent
0e702f7b87
commit
88fdff38f4
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ fn git(repo: &Utf8Path, args: &[&str]) -> Result<String> {
|
||||||
.current_dir(repo)
|
.current_dir(repo)
|
||||||
.output()
|
.output()
|
||||||
.into_diagnostic()
|
.into_diagnostic()
|
||||||
.wrap_err_with(|| format!("Failed to run git {}", args.join(" ")))?;
|
.wrap_err_with(|| format!("Failed to run git {} for {}", args.join(" "), repo))?;
|
||||||
if !output.status.success() {
|
if !output.status.success() {
|
||||||
let err = String::from_utf8_lossy(&output.stderr);
|
let err = String::from_utf8_lossy(&output.stderr);
|
||||||
return Err(Report::msg(format!(
|
return Err(Report::msg(format!(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue