From 47e094c3b14f19fe719d4de56f1f14606efe4885 Mon Sep 17 00:00:00 2001 From: Jens Carl Date: Wed, 24 Apr 2019 21:10:00 +0000 Subject: Improve error messages Change-Id: I08d5b060b6756a89972eeec57c1f9c85e6f65500 Reviewed-on: https://gerrit.libreoffice.org/71262 Tested-by: Jenkins Reviewed-by: Jens Carl --- test/source/beans/xpropertyset.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/source/beans/xpropertyset.cxx b/test/source/beans/xpropertyset.cxx index 993b609ec4b4..f8ac7d17f206 100644 --- a/test/source/beans/xpropertyset.cxx +++ b/test/source/beans/xpropertyset.cxx @@ -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); -- cgit