summaryrefslogtreecommitdiff
path: root/comphelper/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-05-10 11:36:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-05-22 14:16:08 +0200
commitc4c220b56c25a5a78106b9d0fc06280968ccdb28 (patch)
tree11fffe338aa45e844051498039646cf003471806 /comphelper/source
parent0a1022b04c90d36e16dee121923ca4111386585b (diff)
improve logging when we get an exception in copyProperties
Change-Id: Id37ad92df93667536efaac86db3765da98847184 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152086 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'comphelper/source')
-rw-r--r--comphelper/source/property/property.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/comphelper/source/property/property.cxx b/comphelper/source/property/property.cxx
index 0627e71436f5..7d57baeb39cb 100644
--- a/comphelper/source/property/property.cxx
+++ b/comphelper/source/property/property.cxx
@@ -21,6 +21,7 @@
#include <comphelper/sequence.hxx>
#include <osl/diagnose.h>
#include <sal/log.hxx>
+#include <comphelper/diagnose_ex.hxx>
#if OSL_DEBUG_LEVEL > 0
#include <cppuhelper/exc_hlp.hxx>
@@ -87,6 +88,8 @@ void copyProperties(const Reference<XPropertySet>& _rxSource,
catch (Exception&)
{
#if OSL_DEBUG_LEVEL > 0
+ TOOLS_WARN_EXCEPTION("comphelper", "Caught exception copying properties");
+
OUStringBuffer aBuffer(
"::comphelper::copyProperties: could not copy property '"
+ rSourceProp.Name