mirror of
https://github.com/Icinga/icinga2.git
synced 2026-06-09 00:32:12 -04:00
parent
8fd454fbb1
commit
fa1fa23c55
1 changed files with 7 additions and 1 deletions
|
|
@ -242,7 +242,13 @@ Dictionary::Ptr NodeUtility::LoadNodeFile(const String& node_file)
|
|||
|
||||
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)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue