Skip to content
This repository has been archived by the owner on Mar 2, 2020. It is now read-only.

Commit

Permalink
log config not found
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Rybalkin <[email protected]>
  • Loading branch information
cyberb committed Sep 26, 2019
1 parent c89c5ab commit f8f6363
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/env/config/root_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@ impl Config {
let mut file = match File::open(config_location) {
Ok(f) => f,
Err(e) => match e.kind() {
io::ErrorKind::NotFound => return Ok(Self::default()),
io::ErrorKind::NotFound => {
println!(
"Cannot find config file {}, using default config",
config_location
);
return Ok(Self::default());
}
_ => {
return Err(Error::from(
e.context(ErrorKind::FileRead(config_location.to_owned()))
Expand Down

0 comments on commit f8f6363

Please sign in to comment.