Kaydet (Commit) 47e094c3 authored tarafından Jens Carl's avatar Jens Carl

Improve error messages

Change-Id: I08d5b060b6756a89972eeec57c1f9c85e6f65500
Reviewed-on: https://gerrit.libreoffice.org/71262
Tested-by: Jenkins
Reviewed-by: 's avatarJens Carl <j.carl43@gmx.de>
üst 30a1114e
......@@ -244,8 +244,12 @@ bool XPropertySet::isPropertyValueChangeable(const OUString& rName)
}
else
{
std::cout << type.getTypeName() << std::endl;
std::cout << rName << std::endl;
std::cout << "Unknown type:\n"
"Type: "
<< type.getTypeName()
<< "\n"
"Name: "
<< rName << "\n";
CPPUNIT_ASSERT_MESSAGE(
"XPropertySet::isPropertyValueChangeable: unknown type in Any tested.", false);
}
......@@ -255,6 +259,7 @@ bool XPropertySet::isPropertyValueChangeable(const OUString& rName)
}
catch (const uno::Exception&)
{
std::cout << "Exception thrown while retrieving with property: " << rName << "\n";
CPPUNIT_ASSERT_MESSAGE("XPropertySet::isPropertyValueChangeable: exception thrown while "
"retrieving the property value.",
false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment