chore: include config path in error message (#2023)

This commit is contained in:
Matthias Seitz
2023-03-29 14:40:28 +02:00
committed by GitHub
parent ecee19207f
commit 7e481b77ae

View File

@ -353,7 +353,9 @@ impl Command {
}
fn load_config(&self) -> eyre::Result<Config> {
confy::load_path::<Config>(&self.config).wrap_err("Could not load config")
confy::load_path::<Config>(&self.config).wrap_err_with(|| {
format!("Could not load config file {}", self.config.as_ref().display())
})
}
fn init_trusted_nodes(&self, config: &mut Config) {