mirror of https://github.com/Icinga/icinga2.git
parent
8fd454fbb1
commit
fa1fa23c55
|
@ -242,7 +242,13 @@ Dictionary::Ptr NodeUtility::LoadNodeFile(const String& node_file)
|
||||||
|
|
||||||
void NodeUtility::CollectNodes(const String& node_file, std::vector<Dictionary::Ptr>& nodes)
|
void NodeUtility::CollectNodes(const String& node_file, std::vector<Dictionary::Ptr>& nodes)
|
||||||
{
|
{
|
||||||
Dictionary::Ptr node = LoadNodeFile(node_file);
|
Dictionary::Ptr node;
|
||||||
|
|
||||||
|
try {
|
||||||
|
node = LoadNodeFile(node_file);
|
||||||
|
} catch (const std::exception&) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!node)
|
if (!node)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue