Fix validator for dependencies

fixes #8596
This commit is contained in:
Gunnar Beutner 2015-03-09 08:04:18 +01:00
parent 22f3c5082d
commit e50d3e6e5a
2 changed files with 5 additions and 2 deletions

View File

@ -360,6 +360,9 @@ bool ConfigItem::CommitNewItems(WorkQueue& upq)
}
upq.Join();
if (upq.HasExceptions())
return false;
}
} while (!items.empty());

View File

@ -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);
}