Procházet zdrojové kódy

lilith: change no hostlist warning to fatal panic

lunar-mining před 2 roky
rodič
revize
c7cf7d861d
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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();