diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2019-12-26 09:22:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-12-26 19:08:42 +0100 |
commit | df773dc769f6a0d676673ac9b5fc0e8132e435e6 (patch) | |
tree | fe744b9d76e5f26282409fbe3b117e24659de7c0 /forms/source/richtext | |
parent | 32b9d07baa0cf6907f14ccb9aa068b51d95eefaa (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 'forms/source/richtext')
-rw-r--r-- | forms/source/richtext/featuredispatcher.cxx | 3 | ||||
-rw-r--r-- | forms/source/richtext/richtextmodel.cxx | 3 |
2 files changed, 4 insertions, 2 deletions
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 <osl/diagnose.h> +#include <tools/diagnose_ex.h> 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 <svl/itempool.hxx> #include <toolkit/awt/vclxdevice.hxx> #include <toolkit/helper/vclunohelper.hxx> +#include <tools/diagnose_ex.h> #include <editeng/editstat.hxx> #include <vcl/outdev.hxx> #include <vcl/svapp.hxx> @@ -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; |