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

Commit

Permalink
Merge pull request #226 from cyberb/development
Browse files Browse the repository at this point in the history
log config not found
  • Loading branch information
AzureMarker authored Sep 26, 2019
2 parents c89c5ab + f8f6363 commit 16306c5
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 16306c5

Please sign in to comment.