summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2019-12-26 09:22:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-12-26 19:08:42 +0100
commitdf773dc769f6a0d676673ac9b5fc0e8132e435e6 (patch)
treefe744b9d76e5f26282409fbe3b117e24659de7c0 /unotools
parent32b9d07baa0cf6907f14ccb9aa068b51d95eefaa (diff)
use more TOOLS_WARN_EXCEPTION
so we get more useful log messages when stuff goes wrong Change-Id: Ia55db7ab1a4d79b0f281673fbbb06c61745fa89e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85829 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/misc/desktopterminationobserver.cxx3
-rw-r--r--unotools/source/misc/sharedunocomponent.cxx5
2 files changed, 5 insertions, 3 deletions
diff --git a/unotools/source/misc/desktopterminationobserver.cxx b/unotools/source/misc/desktopterminationobserver.cxx
index 2984324caa87..f5ea04bd49ed 100644
--- a/unotools/source/misc/desktopterminationobserver.cxx
+++ b/unotools/source/misc/desktopterminationobserver.cxx
@@ -25,6 +25,7 @@
#include <cppuhelper/implbase.hxx>
#include <comphelper/processfactory.hxx>
#include <osl/diagnose.h>
+#include <tools/diagnose_ex.h>
#include <vector>
@@ -101,7 +102,7 @@ namespace utl
}
catch( const Exception& )
{
- OSL_FAIL( "OObserverImpl::ensureObservation: caught an exception!" );
+ TOOLS_WARN_EXCEPTION( "unotools", "OObserverImpl::ensureObservation" );
}
}
diff --git a/unotools/source/misc/sharedunocomponent.cxx b/unotools/source/misc/sharedunocomponent.cxx
index 6572d5a86fef..7580fdced945 100644
--- a/unotools/source/misc/sharedunocomponent.cxx
+++ b/unotools/source/misc/sharedunocomponent.cxx
@@ -26,6 +26,7 @@
#include <com/sun/star/util/XCloseable.hpp>
#include <cppuhelper/implbase.hxx>
#include <tools/debug.hxx>
+#include <tools/diagnose_ex.h>
namespace utl
{
@@ -59,7 +60,7 @@ namespace utl
}
catch( const Exception& )
{
- OSL_FAIL( "DisposableComponent::~DisposableComponent: caught an exception!" );
+ TOOLS_WARN_EXCEPTION( "unotools", "DisposableComponent::~DisposableComponent" );
}
m_xComponent.clear();
}
@@ -155,7 +156,7 @@ namespace utl
}
catch( const Exception& )
{
- OSL_FAIL( "CloseableComponentImpl::impl_nf_switchListening: caught an exception!" );
+ TOOLS_WARN_EXCEPTION( "unotools", "CloseableComponentImpl::impl_nf_switchListening" );
}
}