chore: panic if no run_mode no config
This commit is contained in:
parent
26b2f77300
commit
5b4a4b70b2
1 changed files with 1 additions and 1 deletions
|
|
@ -300,7 +300,7 @@ pub async fn main() -> BxDynResult<()> { //std::io::Result<()> {
|
||||||
pretty_env_logger::init();
|
pretty_env_logger::init();
|
||||||
let config_content = Config::load_file_content("quiet", &arg_cfg_path);
|
let config_content = Config::load_file_content("quiet", &arg_cfg_path);
|
||||||
if !config_content.contains("run_mode") {
|
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");
|
let config = Config::new(config_content,"quiet");
|
||||||
if config.run_schedtasks {
|
if config.run_schedtasks {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue