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 /editeng | |
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 'editeng')
-rw-r--r-- | editeng/source/xml/xmltxtexp.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/editeng/source/xml/xmltxtexp.cxx b/editeng/source/xml/xmltxtexp.cxx index 0ce287d2a6e4..3a3490ba82b5 100644 --- a/editeng/source/xml/xmltxtexp.cxx +++ b/editeng/source/xml/xmltxtexp.cxx @@ -38,6 +38,7 @@ #include <xmloff/xmlmetae.hxx> #include <cppuhelper/implbase4.hxx> #include <comphelper/processfactory.hxx> +#include <tools/diagnose_ex.h> #include <unotools/streamwrap.hxx> #include <xmloff/xmlexp.hxx> #include <editeng/unoedsrc.hxx> @@ -336,9 +337,10 @@ void SvxWriteXML( EditEngine& rEditEngine, SvStream& rStream, const ESelection& } while( false ); } - catch( const uno::Exception& e ) + catch( const uno::Exception& ) { - SAL_WARN("editeng", "exception during xml export: " << e); + css::uno::Any ex( cppu::getCaughtException() ); + SAL_WARN("editeng", "exception during xml export: " << exceptionToString(ex)); } } |