From df773dc769f6a0d676673ac9b5fc0e8132e435e6 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 26 Dec 2019 09:22:30 +0200 Subject: 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 --- forms/source/richtext/featuredispatcher.cxx | 3 ++- forms/source/richtext/richtextmodel.cxx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'forms/source/richtext') diff --git a/forms/source/richtext/featuredispatcher.cxx b/forms/source/richtext/featuredispatcher.cxx index ac425532f008..d667790c9756 100644 --- a/forms/source/richtext/featuredispatcher.cxx +++ b/forms/source/richtext/featuredispatcher.cxx @@ -19,6 +19,7 @@ #include "featuredispatcher.hxx" #include +#include namespace frm @@ -125,7 +126,7 @@ namespace frm } catch( const Exception& ) { - OSL_FAIL( "ORichTextFeatureDispatcher::doNotify: caught an exception!" ); + TOOLS_WARN_EXCEPTION( "forms.richtext", "ORichTextFeatureDispatcher::doNotify" ); } } } diff --git a/forms/source/richtext/richtextmodel.cxx b/forms/source/richtext/richtextmodel.cxx index 9ec22b913924..866b62ae9484 100644 --- a/forms/source/richtext/richtextmodel.cxx +++ b/forms/source/richtext/richtextmodel.cxx @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include @@ -515,7 +516,7 @@ namespace frm } catch( const Exception& ) { - OSL_FAIL( "ORichTextModel::getEditEngine: caught an exception!" ); + TOOLS_WARN_EXCEPTION( "forms.richtext", "ORichTextModel::getEditEngine" ); } } return pEngine; -- cgit