Skip to content

Commit 746dab2

Browse files
authored
Merge pull request #22418 from itsjunetime/add_fmt_to_err_context
Add format! call to print repo in error
2 parents 7f916ab + 46a2809 commit 746dab2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

xtask/src/pgo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ fn download_crate_for_training(sh: &Shell, pgo_dir: &Path, repo: &str) -> anyhow
9191
let target_path = pgo_dir.join(normalized_path);
9292
cmd!(sh, "git clone --depth 1 https://github.com/{repo} {revision...} {target_path}")
9393
.run()
94-
.with_context(|| "cannot download PGO training crate from {repo}")?;
94+
.with_context(|| format!("cannot download PGO training crate from {repo}"))?;
9595

9696
Ok(target_path)
9797
}

0 commit comments

Comments
 (0)