Skip to content

Commit 46a2809

Browse files
committed
Add format! call to print repo in error
1 parent 7f916ab commit 46a2809

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)