We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
fill_libraries
1 parent 44bbe3e commit a341089Copy full SHA for a341089
collector/src/toolchain.rs
@@ -278,7 +278,7 @@ impl ToolchainComponents {
278
/// Finds known library components in the given `dir` and stores them in `self`.
279
fn fill_libraries(&mut self, dir: &Path) -> anyhow::Result<()> {
280
let files: Vec<(PathBuf, String)> = fs::read_dir(dir)
281
- .context("Cannot read lib dir to find components")?
+ .with_context(|| format!("Cannot read lib dir `{}` to find components", dir.display()))?
282
.map(|entry| Ok(entry?))
283
.collect::<anyhow::Result<Vec<_>>>()?
284
.into_iter()
0 commit comments