From 989debe8d7438028245b965b9d464032a0d3e0a3 Mon Sep 17 00:00:00 2001 From: sigoden Date: Wed, 23 Oct 2024 17:23:40 +0800 Subject: refactor: improve error rendering (#948) --- src/utils/path.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils/path.rs') diff --git a/src/utils/path.rs b/src/utils/path.rs index e27b5ee..a8534fb 100644 --- a/src/utils/path.rs +++ b/src/utils/path.rs @@ -82,7 +82,7 @@ async fn list_files( suffixes: Option<&Vec>, ) -> Result<()> { if !entry_path.exists() { - bail!("Not found: {}", entry_path.display()); + bail!("Not found '{}'", entry_path.display()); } if entry_path.is_dir() { let mut reader = tokio::fs::read_dir(entry_path).await?; -- cgit v1.2.3