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 --- sd/source/ui/view/drviewsa.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sd') diff --git a/sd/source/ui/view/drviewsa.cxx b/sd/source/ui/view/drviewsa.cxx index f4dc01c89a82..948e20312d52 100644 --- a/sd/source/ui/view/drviewsa.cxx +++ b/sd/source/ui/view/drviewsa.cxx @@ -67,6 +67,7 @@ #include #include #include +#include #include @@ -326,11 +327,11 @@ void DrawViewShell::Construct(DrawDocShell* pDocSh, PageKind eInitialPageKind) mxScannerListener.set( static_cast< ::cppu::OWeakObject* >( new ScannerEventListener( this ) ), uno::UNO_QUERY ); } - catch (Exception& exception) + catch (Exception const &) { // Eat the exception and log it // We can still continue if scanner manager is not available. - SAL_WARN("sd", "Scanner manager exception: " << exception); + DBG_UNHANDLED_EXCEPTION("sd"); } mpAnnotationManager.reset( new AnnotationManager( GetViewShellBase() ) ); -- cgit