mirror of https://github.com/Icinga/icinga2.git
parent
22f3c5082d
commit
e50d3e6e5a
|
@ -360,6 +360,9 @@ bool ConfigItem::CommitNewItems(WorkQueue& upq)
|
|||
}
|
||||
|
||||
upq.Join();
|
||||
|
||||
if (upq.HasExceptions())
|
||||
return false;
|
||||
}
|
||||
} while (!items.empty());
|
||||
|
||||
|
|
|
@ -77,7 +77,7 @@ void Dependency::OnAllConfigLoaded(void)
|
|||
}
|
||||
|
||||
if (!m_Child)
|
||||
BOOST_THROW_EXCEPTION(ScriptError("Dependency '" << GetName() << "' references a child host/service which doesn't exist.", GetDebugInfo()));
|
||||
BOOST_THROW_EXCEPTION(ScriptError("Dependency '" + GetName() + "' references a child host/service which doesn't exist.", GetDebugInfo()));
|
||||
|
||||
m_Child->AddDependency(this);
|
||||
|
||||
|
@ -96,7 +96,7 @@ void Dependency::OnAllConfigLoaded(void)
|
|||
}
|
||||
|
||||
if (!m_Parent)
|
||||
BOOST_THROW_EXCEPTION(ScriptError("Dependency '" << GetName() << "' references a parent host/service which doesn't exist.", GetDebugInfo()));
|
||||
BOOST_THROW_EXCEPTION(ScriptError("Dependency '" + GetName() + "' references a parent host/service which doesn't exist.", GetDebugInfo()));
|
||||
|
||||
m_Parent->AddReverseDependency(this);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue