From 48fbfe38f60de731ff8bec0372179bedd6670af4 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 5 Apr 2018 16:20:13 +0200 Subject: use more DBG_UNHANDLED_EXCEPTION so we get nice logs of the exception dynamic type for UNO exceptions. Change-Id: Ic0b10dc14d354a2c9a0591b3a51d2f1640d54bdb Reviewed-on: https://gerrit.libreoffice.org/52465 Tested-by: Jenkins Reviewed-by: Noel Grandin --- writerperfect/source/writer/exp/xmlimp.cxx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'writerperfect') diff --git a/writerperfect/source/writer/exp/xmlimp.cxx b/writerperfect/source/writer/exp/xmlimp.cxx index b1991a5ce506..9ef9afa837c1 100644 --- a/writerperfect/source/writer/exp/xmlimp.cxx +++ b/writerperfect/source/writer/exp/xmlimp.cxx @@ -23,6 +23,7 @@ #include #include #include +#include #include "xmlfmt.hxx" #include "xmlictxt.hxx" @@ -77,9 +78,9 @@ OUString FindMediaDir(const OUString &rDocumentBaseURL, const uno::Sequence &xContext, con { xParser->parseStream(aInputSource); } - catch (const uno::Exception &rException) + catch (const uno::Exception &) { - SAL_WARN("writerperfect", "FindXMPMetadata: parseStream() failed:" << rException.Message); + DBG_UNHANDLED_EXCEPTION("writerperfect", "parseStream() failed"); return; } } @@ -399,9 +400,9 @@ PopupState XMLImport::FillPopupData(const OUString &rURL, librevenge::RVNGProper { xUriRef = mxUriReferenceFactory->parse(rURL); } - catch (const uno::Exception &rException) + catch (const uno::Exception &) { - SAL_WARN("writerperfect", "XMLImport::FillPopupData: XUriReference::parse() failed:" << rException.Message); + DBG_UNHANDLED_EXCEPTION("writerperfect", "XUriReference::parse() failed"); } bool bAbsolute = true; if (xUriRef.is()) -- cgit v1.2.3