Add TODO about improving builder finalize error.

This commit is contained in:
Sergio Benitez 2017-01-12 02:43:00 -08:00
parent a2f378ab88
commit c6fbc44888
1 changed files with 1 additions and 0 deletions

View File

@ -90,6 +90,7 @@ impl ConfigBuilder {
self self
} }
// TODO: Collect all errors into one `Several` `ConfigError` variant.
pub fn finalize(self) -> Result<Config> { pub fn finalize(self) -> Result<Config> {
let mut config = Config::new(self.environment)?; let mut config = Config::new(self.environment)?;
config.set_address(self.address)?; config.set_address(self.address)?;