summaryrefslogtreecommitdiff
path: root/unotools/source/config/itemholder1.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unotools/source/config/itemholder1.cxx')
-rw-r--r--unotools/source/config/itemholder1.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/unotools/source/config/itemholder1.cxx b/unotools/source/config/itemholder1.cxx
index 70d1880ca6ca..bf74770f34a2 100644
--- a/unotools/source/config/itemholder1.cxx
+++ b/unotools/source/config/itemholder1.cxx
@@ -47,6 +47,7 @@
#include <unotools/syslocaleoptions.hxx>
#include <sal/log.hxx>
#include <osl/diagnose.h>
+#include <tools/diagnose_ex.h>
ItemHolder1::ItemHolder1()
: ItemHolderMutexBase()
@@ -60,13 +61,14 @@ ItemHolder1::ItemHolder1()
xCfg->addEventListener(static_cast< css::lang::XEventListener* >(this));
}
#ifdef DBG_UTIL
- catch(const css::uno::Exception& rEx)
+ catch(const css::uno::Exception&)
{
static bool bMessage = true;
if(bMessage)
{
bMessage = false;
- SAL_WARN( "unotools", "CreateInstance with arguments exception: " << rEx);
+ css::uno::Any ex( cppu::getCaughtException() );
+ SAL_WARN( "unotools", "CreateInstance with arguments exception: " << exceptionToString(ex));
}
}
#else