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 /sd/source/helper | |
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 'sd/source/helper')
-rw-r--r-- | sd/source/helper/simplereferencecomponent.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sd/source/helper/simplereferencecomponent.cxx b/sd/source/helper/simplereferencecomponent.cxx index e47341b85ba3..23a1fe108c4a 100644 --- a/sd/source/helper/simplereferencecomponent.cxx +++ b/sd/source/helper/simplereferencecomponent.cxx @@ -22,6 +22,7 @@ #include <com/sun/star/uno/RuntimeException.hpp> #include <osl/diagnose.h> #include <sal/log.hxx> +#include <tools/diagnose_ex.h> using com::sun::star::uno::RuntimeException; using sd::SimpleReferenceComponent; @@ -51,9 +52,10 @@ void SimpleReferenceComponent::release() { Dispose(); } - catch (RuntimeException & exc ) // don't break throw () + catch (RuntimeException const &) // don't break throw () { - SAL_WARN( "sd", exc ); + css::uno::Any ex( cppu::getCaughtException() ); + SAL_WARN( "sd", exceptionToString(ex) ); } } |