Browse Source

more verbose no config warning

lunar-mining 4 years ago
parent
commit
75296e9083
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/cli/cli_config.rs

+ 2 - 0
src/cli/cli_config.rs

@@ -1,5 +1,6 @@
 use crate::{Error, Result};
 use crate::{Error, Result};
 
 
+use log::*;
 use serde::de::DeserializeOwned;
 use serde::de::DeserializeOwned;
 use serde::{Deserialize, Serialize};
 use serde::{Deserialize, Serialize};
 use std::marker::PhantomData;
 use std::marker::PhantomData;
@@ -21,6 +22,7 @@ impl<T: Serialize + DeserializeOwned> Config<T> {
             let config: T = toml::from_str(str_buff.clone())?;
             let config: T = toml::from_str(str_buff.clone())?;
             Ok(config)
             Ok(config)
         } else {
         } else {
+            println!("No config files were found in .config/darkfi. Please follow the instructions in the README and add default configs.");
             Err(Error::ConfigNotFound)
             Err(Error::ConfigNotFound)
         }
         }
     }
     }