Skip to content
Snippets Groups Projects
Commit 89a0ba84 authored by echicken's avatar echicken
Browse files

Be more descriptive about invalid lines.

But don't whine about EOF.
parent 2b967b87
No related branches found
No related tags found
No related merge requests found
......@@ -100,8 +100,8 @@ function NodeList(filename, warn)
if (line[0] === ';')
continue;
fields = line.split(/,/);
if (fields.length < 7) {
log(LOG_WARNING, 'Invalid nodelist line #' + lineno + ': ' + line);
if (fields.length < 7 && fields[0] != '\x1a') {
log(LOG_WARNING, 'Invalid nodelist line ' + lineno + ' of ' + f.name + ': ' + line);
continue;
}
switch(fields[0]) {
......
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