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
Branches
Tags
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.
Please register or to comment