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

lilith: change no hostlist warning to fatal panic

lunar-mining 2 лет назад
Родитель
Сommit
c7cf7d861d
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      bin/lilith/src/main.rs

+ 2 - 2
bin/lilith/src/main.rs

@@ -179,8 +179,8 @@ fn parse_configured_networks(data: &str) -> Result<HashMap<String, NetInfo>> {
                 }
 
                 if !table.contains_key("hostlist") {
-                    warn!(target: "lilith", "Hostlist path is mandatory, skipping network.");
-                    continue
+                    error!(target: "lilith", "Hostlist path is mandatory! Configure and try again.");
+                    exit(1)
                 }
 
                 let name = net.0.to_string();