From 7e481b77ae39df552d22054c1d7e5df506151beb Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Wed, 29 Mar 2023 14:40:28 +0200 Subject: [PATCH] chore: include config path in error message (#2023) --- bin/reth/src/node/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/reth/src/node/mod.rs b/bin/reth/src/node/mod.rs index d76b176dcc..e24295d98d 100644 --- a/bin/reth/src/node/mod.rs +++ b/bin/reth/src/node/mod.rs @@ -353,7 +353,9 @@ impl Command { } fn load_config(&self) -> eyre::Result { - confy::load_path::(&self.config).wrap_err("Could not load config") + confy::load_path::(&self.config).wrap_err_with(|| { + format!("Could not load config file {}", self.config.as_ref().display()) + }) } fn init_trusted_nodes(&self, config: &mut Config) {