Skip to content

Commit

Permalink
Fix config error message
Browse files Browse the repository at this point in the history
  • Loading branch information
akiomik committed Jan 1, 2024
1 parent 0110a09 commit c846575
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl Config {
}
if !found_config {
log::error!("No configuration file found");
return Err(ConfigError::NotFound(String::from(
return Err(ConfigError::Message(String::from(
"No configuration file found",
)));
}
Expand All @@ -95,7 +95,7 @@ impl Config {
}

if cfg.privatekey.is_empty() {
return Err(ConfigError::NotFound(String::from("No `privatekey` found")));
return Err(ConfigError::NotFound(String::from("privatekey")));
}

if cfg.relays.is_empty() {
Expand Down

0 comments on commit c846575

Please sign in to comment.