Add error printing (debug) in GlobStoreIdIterator helper type
This commit is contained in:
parent
5972ce7f37
commit
a510e1b6b6
1 changed files with 9 additions and 1 deletions
|
@ -181,7 +181,15 @@ impl Iterator for GlobStoreIdIterator {
|
|||
type Item = StoreId;
|
||||
|
||||
fn next(&mut self) -> Option<StoreId> {
|
||||
self.paths.next().and_then(|o| o.ok()).map(|p| StoreId::from(p))
|
||||
self.paths.next().and_then(|o| {
|
||||
match o {
|
||||
Ok(o) => Some(o),
|
||||
Err(e) => {
|
||||
debug!("GlobStoreIdIterator error: {:?}", e);
|
||||
None
|
||||
},
|
||||
}
|
||||
}).map(|p| StoreId::from(p))
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue