chore: panic if no run_mode no config
This commit is contained in:
parent
26b2f77300
commit
5b4a4b70b2
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user