From 20dfd661d47c26af3ac884273505b3080a47fd4d Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 5 Jan 2016 16:38:55 +0100 Subject: [PATCH] Use unused return value: On glob() error, print error msg --- src/storage/mod.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/storage/mod.rs b/src/storage/mod.rs index 1d333520..900d5fdc 100644 --- a/src/storage/mod.rs +++ b/src/storage/mod.rs @@ -327,7 +327,12 @@ impl Store { }); } } - }); + }) + .map_err(|e| { + error!("Could not glob: '{}'", globstr); + debug!("Could not glob(): {:?}", e); + }) + .ok(); res }