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 /drawinglayer | |
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 'drawinglayer')
-rw-r--r-- | drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx index db5333541958..71598cabc92c 100644 --- a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx @@ -20,6 +20,7 @@ #include <memory> #include "vclmetafileprocessor2d.hxx" #include <tools/gen.hxx> +#include <tools/diagnose_ex.h> #include <vcl/virdev.hxx> #include <vcl/gdimtf.hxx> #include <vcl/gradient.hxx> @@ -1086,7 +1087,7 @@ namespace drawinglayer } catch(const uno::Exception&) { - OSL_FAIL("VclMetafileProcessor2D: No access to printable flag of Control, caught an exception!"); + TOOLS_WARN_EXCEPTION("drawinglayer", "VclMetafileProcessor2D: No access to printable flag of Control"); } } @@ -1163,7 +1164,7 @@ namespace drawinglayer } catch( const uno::Exception& ) { - OSL_FAIL("VclMetafileProcessor2D: Printing of Control failed, caught an exception!"); + TOOLS_WARN_EXCEPTION("drawinglayer", "VclMetafileProcessor2D: Printing of Control failed"); } } |