aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/search/entry.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/search/entry.rs b/src/search/entry.rs
index 776886b..1d885c8 100644
--- a/src/search/entry.rs
+++ b/src/search/entry.rs
@@ -47,8 +47,9 @@ impl Iterator for Entry {
Ok(dir_entry) => self.parse_dir_entry(dir_entry),
Err(err) => {
error!(%err, "Ignoring errored path");
- self.next()
+ None
}
}
+ .or_else(|| self.next())
}
}