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 /writerfilter | |
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 'writerfilter')
-rw-r--r-- | writerfilter/source/dmapper/DomainMapper_Impl.cxx | 5 | ||||
-rw-r--r-- | writerfilter/source/ooxml/OOXMLDocumentImpl.cxx | 10 |
2 files changed, 9 insertions, 6 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx index cc8f1c555621..f0e13f5c54d8 100644 --- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx +++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx @@ -2038,9 +2038,10 @@ void DomainMapper_Impl::PushFootOrEndnote( bool bIsFootnote ) CheckRedline( xFootnote->getAnchor( ) ); } - catch( const uno::Exception& e ) + catch( const uno::Exception& ) { - SAL_WARN("writerfilter.dmapper", "exception in PushFootOrEndnote: " << e); + SAL_WARN("writerfilter.dmapper", "exception in PushFootOrEndnote: " + << exceptionToString( cppu::getCaughtException() )); } } diff --git a/writerfilter/source/ooxml/OOXMLDocumentImpl.cxx b/writerfilter/source/ooxml/OOXMLDocumentImpl.cxx index c19f566ad286..0d00b0eff303 100644 --- a/writerfilter/source/ooxml/OOXMLDocumentImpl.cxx +++ b/writerfilter/source/ooxml/OOXMLDocumentImpl.cxx @@ -182,10 +182,11 @@ void OOXMLDocumentImpl::importSubStreamRelations(const OOXMLStream::Pointer_t& p { cStream = OOXMLDocumentFactory::createStream(pStream, nType); } - catch (uno::Exception const& e) + catch (uno::Exception const&) { + css::uno::Any ex( cppu::getCaughtException() ); SAL_WARN("writerfilter.ooxml", "importSubStreamRelations: exception while " - "importing stream " << nType << " : " << e); + "importing stream " << nType << " : " << exceptionToString(ex)); return; } @@ -202,10 +203,11 @@ void OOXMLDocumentImpl::importSubStreamRelations(const OOXMLStream::Pointer_t& p uno::Reference<xml::dom::XDocumentBuilder> xDomBuilder(xml::dom::DocumentBuilder::create(xcpContext)); xRelation = xDomBuilder->parse(xcpInputStream); } - catch (uno::Exception const& e) + catch (uno::Exception const&) { + css::uno::Any ex( cppu::getCaughtException() ); SAL_WARN("writerfilter.ooxml", "importSubStream: exception while " - "parsing stream " << nType << " : " << e); + "parsing stream " << nType << " : " << exceptionToString(ex)); mxCustomXmlProsDom = xRelation; } |