Просмотр исходного кода

more verbose no config warning

lunar-mining 4 лет назад
Родитель
Сommit
75296e9083
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      src/cli/cli_config.rs

+ 2 - 0
src/cli/cli_config.rs

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