Skip to content

Commit

Permalink
print serde error too
Browse files Browse the repository at this point in the history
  • Loading branch information
Adinata Wijaya committed Mar 30, 2023
1 parent 59a6bbb commit 7adde47
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,11 @@ pub fn validate_config(config_file: impl AsRef<Path>) -> bool {
info!("Config file {config_file_string} loaded successfully");
true
}
Err(_) => {
error!("Could not load config file {config_file_string}");
Err(e) => {
error!(
"Could not load config file {config_file_string}: {}",
e.to_string()
);
false
}
}
Expand Down

0 comments on commit 7adde47

Please sign in to comment.