diff options
| author | sigoden <sigoden@gmail.com> | 2024-10-23 17:23:40 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-23 17:23:40 +0800 |
| commit | 989debe8d7438028245b965b9d464032a0d3e0a3 (patch) | |
| tree | 753a0c298b4933ea9fd38aed450d01d2103d4f64 /src/utils/path.rs | |
| parent | 5c06c67ee45e95375eae2e1727e41603fdb9b2f3 (diff) | |
| download | aichat-989debe8d7438028245b965b9d464032a0d3e0a3.tar.gz | |
refactor: improve error rendering (#948)
Diffstat (limited to 'src/utils/path.rs')
| -rw-r--r-- | src/utils/path.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<String>>, ) -> 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?; |
