Skip to content
Snippets Groups Projects
Commit 2b967b87 authored by echicken's avatar echicken
Browse files

Warn on invalid nodelist lines and then just skippem.

I'm lookin' at you, retronet.
parent c5c70295
No related branches found
No related tags found
No related merge requests found
......@@ -100,6 +100,10 @@ function NodeList(filename, warn)
if (line[0] === ';')
continue;
fields = line.split(/,/);
if (fields.length < 7) {
log(LOG_WARNING, 'Invalid nodelist line #' + lineno + ': ' + line);
continue;
}
switch(fields[0]) {
case 'Zone':
node.zone = parseInt(fields[1], 10);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment