Throw exception for missing types.

This commit is contained in:
Gunnar Beutner 2013-01-23 10:41:38 +01:00
parent 65c0334b28
commit c99d4b19a9
1 changed files with 3 additions and 0 deletions

View File

@ -150,6 +150,9 @@ DynamicObject::Ptr ConfigItem::Commit(void)
DynamicType::Ptr dtype = DynamicType::GetByName(GetType());
if (!dtype)
throw_exception(runtime_error("Type '" + GetType() + "' does not exist."));
if (!dobj)
dobj = dtype->GetObject(GetName());