diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-03-01 14:42:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-03-07 07:12:39 +0100 |
commit | 8b5e23eac31cafbd442a3acab5fbcf98bfd0af11 (patch) | |
tree | d41feeea533127280e0503d0dc2dd55a4ab83ce8 /svl | |
parent | 4f810905fa74128871f2fe924a3d28a79f4e4261 (diff) |
log nice exception messages whereever possible
Change-Id: Idd125c18bee1a39b9ea8cc4f8c55cddfd37c33e1
Reviewed-on: https://gerrit.libreoffice.org/68579
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/config/itemholder2.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/svl/source/config/itemholder2.cxx b/svl/source/config/itemholder2.cxx index 08240e83ae03..61b1071462f5 100644 --- a/svl/source/config/itemholder2.cxx +++ b/svl/source/config/itemholder2.cxx @@ -29,6 +29,7 @@ #include <svl/cjkoptions.hxx> #include <svl/ctloptions.hxx> #include <svl/languageoptions.hxx> +#include <tools/diagnose_ex.h> #include <unotools/options.hxx> ItemHolder2::ItemHolder2() @@ -45,13 +46,14 @@ ItemHolder2::ItemHolder2() throw; } #ifdef DBG_UTIL - catch(const css::uno::Exception& rEx) + catch(const css::uno::Exception&) { static bool bMessage = true; if(bMessage) { bMessage = false; - SAL_WARN( "svl", "CreateInstance with arguments exception: " << rEx); + css::uno::Any ex( cppu::getCaughtException() ); + SAL_WARN( "svl", "CreateInstance with arguments exception: " << exceptionToString(ex)); } } #else |