1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-10-01 16:54:08 +02:00

feat(git): Add repo context on git failures

This commit is contained in:
Louis Chmn 2026-08-12 18:13:33 +02:00
commit 88fdff38f4

View file

@ -83,7 +83,7 @@ fn git(repo: &Utf8Path, args: &[&str]) -> Result<String> {
.current_dir(repo)
.output()
.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() {
let err = String::from_utf8_lossy(&output.stderr);
return Err(Report::msg(format!(