mirror of https://github.com/Icinga/icinga2.git
Check for invalid value type.
This commit is contained in:
parent
84fcf24fa3
commit
bac7495f49
|
@ -83,6 +83,8 @@ Value::operator String(void) const
|
|||
case ValueObject:
|
||||
object = boost::get<Object::Ptr>(m_Value).get();
|
||||
return "Object of type '" + Utility::GetTypeName(typeid(*object)) + "'";
|
||||
default:
|
||||
BOOST_THROW_EXCEPTION(runtime_error("Unknown value type."));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue