diff --git a/src/certs.rs b/src/certs.rs index 9084963..6719e29 100644 --- a/src/certs.rs +++ b/src/certs.rs @@ -15,7 +15,7 @@ pub async fn read_certs( pub async fn read_dir(path: impl AsRef + Debug) -> anyhow::Result> { let mut dir = fs::read_dir(path.as_ref()) .await - .context("read certs dir")?; + .with_context(|| format!("read certs dir '{:?}'", path.as_ref()))?; let mut certs = Vec::new(); while let Some(entry) = dir.next_entry().await? { //TODO: investigate why path().ends_with doesn't work