Skip to content

Commit

Permalink
feat(cli): fail on invalid config
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin committed Jun 25, 2024
1 parent aa95230 commit e9eea35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/reth/src/commands/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl EnvironmentArgs {
}

let config_path = self.config.clone().unwrap_or_else(|| data_dir.config());
let mut config: Config = confy::load_path(config_path).unwrap_or_default();
let mut config: Config = confy::load_path(config_path)?;

// Make sure ETL doesn't default to /tmp/, but to whatever datadir is set to
if config.stages.etl.dir.is_none() {
Expand Down

0 comments on commit e9eea35

Please sign in to comment.