aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 3328ab59..ce323ac1 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -38,7 +38,11 @@ fn main() {
match err {
// Use default config when not found
config::Error::NotFound => {
- err_println!("Config file not found; using defaults");
+ match Config::write_defaults() {
+ Ok(path) => err_println!("Config file not found; write defaults config to {:?}", path),
+ Err(err) => err_println!("Write defaults config failure: {}", err)
+ }
+
Config::default()
},