oox/source/core/xmlfilterbase.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit b5c5b51e7561624f46c34ec1c1b024269b92739b Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Tue Nov 19 08:47:00 2024 +0000 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Wed Nov 20 09:33:28 2024 +0100 use TOOLS_WARN_EXCEPTION to get exception details Change-Id: I68f45585878b323e44ce9ca2d660c72ebb7be174 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176791 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/oox/source/core/xmlfilterbase.cxx b/oox/source/core/xmlfilterbase.cxx index 2f5c7a84d72a..38a51cc4b2d4 100644 --- a/oox/source/core/xmlfilterbase.cxx +++ b/oox/source/core/xmlfilterbase.cxx @@ -54,6 +54,7 @@ #include <com/sun/star/document/XDocumentPropertiesSupplier.hpp> #include <com/sun/star/document/XOOXMLDocumentPropertiesImporter.hpp> #include <com/sun/star/xml/dom/DocumentBuilder.hpp> +#include <comphelper/diagnose_ex.hxx> #include <comphelper/processfactory.hxx> #include <oox/core/filterdetect.hxx> #include <comphelper/stl_types.hxx> @@ -420,8 +421,7 @@ bool XmlFilterBase::importFragment( const rtl::Reference<FragmentHandler>& rxHan } catch( Exception& ) { - OSL_FAIL( OStringBuffer( "XmlFilterBase::importFragment - XML parser failed in fragment '" + - OUStringToOString( aFragmentPath, RTL_TEXTENCODING_ASCII_US ) + "'" ).getStr() ); + TOOLS_WARN_EXCEPTION("oox", "XmlFilterBase::importFragment - XML parser failed in fragment '" << aFragmentPath << "'" ); } } catch( Exception& )