From d32b5d73f74a91bdff2da55d709a4504c5067857 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 17 Jul 2019 19:19:59 +0200 Subject: Print error to be more helpful Signed-off-by: Matthias Beyer --- ui/src/conf.rs | 6 ++---- 1 file 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); } -- cgit v1.2.3