chore: panic if no run_mode no config

This commit is contained in:
Jesús Pérez Lorenzo 2021-09-12 22:11:45 +01:00
parent 26b2f77300
commit 5b4a4b70b2

View File

@ -300,7 +300,7 @@ pub async fn main() -> BxDynResult<()> { //std::io::Result<()> {
pretty_env_logger::init();
let config_content = Config::load_file_content("quiet", &arg_cfg_path);
if !config_content.contains("run_mode") {
panic!("Error no run_mode found");
panic!("Error no run_mode found or config path incomplete");
}
let config = Config::new(config_content,"quiet");
if config.run_schedtasks {