mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: include config path in error message (#2023)
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user