Browse Source

Removed needless error passing from missing file error

develop
Drew Short 6 years ago
parent
commit
e3c106e438
  1. 2
      src/config.rs

2
src/config.rs

@ -127,6 +127,6 @@ pub fn load_config(path: &str) -> Result<Config, ConfigError> {
Err(e) => Result::Err(ConfigError::new("Cannot Read Configuration File", Option::Some(Box::from(e))))
}
},
Err(e) => Result::Err(ConfigError::new(&format!("Configuration File Doesn't Exist \"{}\"", path), Option::Some(Box::from(e))))
Err(e) => Result::Err(ConfigError::new(&format!("Configuration File Doesn't Exist \"{}\"", path), Option::None))
}
}
Loading…
Cancel
Save