From fc3d33858629279f88717e3cec9b1761de890774 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 6 Sep 2023 09:33:22 +0200 Subject: improve debug logging in SdXMLShapeContext::AddShape so we get source info for the exception Change-Id: Icd54a4d1388c7a48ab3e0c8bd17c21f6004a470b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156589 Tested-by: Noel Grandin Reviewed-by: Noel Grandin --- xmloff/source/draw/ximpshap.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'xmloff') diff --git a/xmloff/source/draw/ximpshap.cxx b/xmloff/source/draw/ximpshap.cxx index c64a80b756a1..6dea8cab5e2f 100644 --- a/xmloff/source/draw/ximpshap.cxx +++ b/xmloff/source/draw/ximpshap.cxx @@ -513,6 +513,7 @@ void SdXMLShapeContext::AddShape(OUString const & serviceName) } catch(const uno::Exception& e) { + TOOLS_WARN_EXCEPTION("xmloff", "AddShape " << serviceName); uno::Sequence aSeq { serviceName }; GetImport().SetError( XMLERROR_FLAG_ERROR | XMLERROR_API, aSeq, e.Message, nullptr ); -- cgit