From a9cc3ad0bacc3fcd473fb3ccf468cd30a05b7574 Mon Sep 17 00:00:00 2001 From: Anthony Ruhier Date: Wed, 21 Jun 2017 23:23:24 +0200 Subject: Parsing errors even for non required file Related to #32 Even if a configuration file is not required, returns an error if the file exists but the parsing failed. --- src/file/mod.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/file') diff --git a/src/file/mod.rs b/src/file/mod.rs index d19f973..7fc25c8 100644 --- a/src/file/mod.rs +++ b/src/file/mod.rs @@ -95,11 +95,6 @@ impl Source for File { } }); - if result.is_err() && !self.required { - // Ignore fails and just go with it if its not required - Ok(HashMap::new()) - } else { - result - } + result } } -- cgit v1.2.3