mirror of https://github.com/Icinga/icinga2.git
parent
3e64b642ca
commit
6fddec0dd3
|
@ -139,7 +139,7 @@ public:
|
||||||
return intrusive_ptr<T>();
|
return intrusive_ptr<T>();
|
||||||
|
|
||||||
if (!IsObject())
|
if (!IsObject())
|
||||||
BOOST_THROW_EXCEPTION(std::runtime_error("Cannot convert value to object."));
|
BOOST_THROW_EXCEPTION(std::runtime_error("Cannot convert value of type '" + GetTypeName() + "' to an object."));
|
||||||
|
|
||||||
Object::Ptr object = boost::get<Object::Ptr>(m_Value);
|
Object::Ptr object = boost::get<Object::Ptr>(m_Value);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue