diff --git a/src/config.rs b/src/config.rs index 441f86f48cb..632170e6812 100644 --- a/src/config.rs +++ b/src/config.rs @@ -261,8 +261,9 @@ macro_rules! create_config { match parsed.try_into() { Ok(parsed_config) => Ok(Config::default().fill_from_parsed_config(parsed_config)), - Err(_) => { - err.push_str("Error: Decoding config file failed. "); + Err(e) => { + err.push_str("Error: Decoding config file failed:\n"); + err.push_str(format!("{}\n", e).as_str()); err.push_str("Please check your config file.\n"); Err(err) }