mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
parent
3e64b642ca
commit
6fddec0dd3
@ -139,7 +139,7 @@ public:
|
||||
return intrusive_ptr<T>();
|
||||
|
||||
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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user