diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2019-07-17 19:19:59 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2019-07-17 19:32:11 +0200 |
commit | d32b5d73f74a91bdff2da55d709a4504c5067857 (patch) | |
tree | 3491e804b3a8a42de73801745ca894dca0b1bd56 | |
parent | 1fb7da0291bb0bcd3ce352e5b6b1d67059067513 (diff) |
Print error to be more helpful
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | ui/src/conf.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ui/src/conf.rs b/ui/src/conf.rs index 814a395b..534168af 100644 --- a/ui/src/conf.rs +++ b/ui/src/conf.rs @@ -270,10 +270,8 @@ impl FileSettings { } } let mut s = Config::new(); - if s.merge(File::new(config_path.to_str().unwrap(), FileFormat::Toml)) - .is_err() - { - eprintln!("Config file contains errors."); + if let Err(e) = s.merge(File::new(config_path.to_str().unwrap(), FileFormat::Toml)) { + eprintln!("Config file contains errors: {:?}", e); std::process::exit(1); } |