diff --git a/exec/fido-nodelist-browser.js b/exec/fido-nodelist-browser.js index 5f9e19cfd5a70bed5505ffbd96a14b7c62cf5427..14b594b3950dd2d0309a0e9c65b3aece656c26ae 100644 --- a/exec/fido-nodelist-browser.js +++ b/exec/fido-nodelist-browser.js @@ -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 () {