summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/search.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/search.rs b/src/search.rs
index 9f85f3a..a7e6315 100644
--- a/src/search.rs
+++ b/src/search.rs
@@ -32,6 +32,10 @@ impl Search {
tracing::debug!(?p, "Ignoring search directory");
None
}
+ Ok(p) if p.is_file() => {
+ tracing::error!(?p, "Ignoring file");
+ None
+ }
Ok(p) => Some(p),
Err(err) => {
tracing::error!(%err, "Ignoring errored path");