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

Wrap the first attempt to run a nodelist through the parser in a try{},

log the filename and error if one occurs.
parent 3945b202
No related branches found
No related tags found
No related merge requests found
......@@ -156,7 +156,12 @@ function populate_zone_tree(filename, tree, settings) {
}
function populate_domain_tree(filename, tree, settings) {
const nodelist = new NodeList(filename);
try {
const nodelist = new NodeList(filename);
} catch (err) {
log(LOG_ERR, format('Error parsing %s: %s', filename, err));
return;
}
const domain_tree = tree.addTree(nodelist.domain);
const idx = tree.items.length - 1;
domain_tree.onOpen = function () {
......
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