Skip to content

Commit a341089

Browse files
committed
add given lib dir to fill_libraries error context
1 parent 44bbe3e commit a341089

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

collector/src/toolchain.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ impl ToolchainComponents {
278278
/// Finds known library components in the given `dir` and stores them in `self`.
279279
fn fill_libraries(&mut self, dir: &Path) -> anyhow::Result<()> {
280280
let files: Vec<(PathBuf, String)> = fs::read_dir(dir)
281-
.context("Cannot read lib dir to find components")?
281+
.with_context(|| format!("Cannot read lib dir `{}` to find components", dir.display()))?
282282
.map(|entry| Ok(entry?))
283283
.collect::<anyhow::Result<Vec<_>>>()?
284284
.into_iter()

0 commit comments

Comments
 (0)