From a29ed8c1c83126acfe34c4ab731fb0a8fc511c17 Mon Sep 17 00:00:00 2001 From: shimun Date: Thu, 1 Dec 2022 13:56:50 +0000 Subject: [PATCH] fix: log path --- src/certs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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