diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-05 16:20:13 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-09 08:46:34 +0200 |
commit | 48fbfe38f60de731ff8bec0372179bedd6670af4 (patch) | |
tree | 2a1bbc4a2207d049d38c058d7f4ebb06a4f01182 /vcl | |
parent | 115a8539038ecdd5e496fb6c84101c5b14d11068 (diff) |
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 <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/backendtest/VisualBackendTest.cxx | 5 | ||||
-rw-r--r-- | vcl/source/window/builder.cxx | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/vcl/backendtest/VisualBackendTest.cxx b/vcl/backendtest/VisualBackendTest.cxx index a7126aa5d89b..00133c154b3e 100644 --- a/vcl/backendtest/VisualBackendTest.cxx +++ b/vcl/backendtest/VisualBackendTest.cxx @@ -42,6 +42,7 @@ #include <basegfx/numeric/ftools.hxx> #include <basegfx/matrix/b2dhommatrix.hxx> +#include <tools/diagnose_ex.h> #include <chrono> #include <iostream> @@ -525,9 +526,9 @@ public: Application::Execute(); } - catch (const css::uno::Exception& rException) + catch (const css::uno::Exception&) { - SAL_WARN("vcl.app", "Fatal exception: " << rException); + DBG_UNHANDLED_EXCEPTION("vcl.app", "Fatal"); return 1; } catch (const std::exception& rException) diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index fafae4c130bc..e5eb14989237 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -49,6 +49,7 @@ #include <salinst.hxx> #include <strings.hrc> #include <tools/svlibrary.h> +#include <tools/diagnose_ex.h> #ifdef DISABLE_DYNLOADING #include <dlfcn.h> @@ -268,7 +269,7 @@ VclBuilder::VclBuilder(vcl::Window *pParent, const OUString& sUIDir, const OUStr } catch (const css::uno::Exception &rExcept) { - SAL_WARN("vcl.layout", "Unable to read .ui file: " << rExcept); + DBG_UNHANDLED_EXCEPTION("vcl.layout", "Unable to read .ui file"); CrashReporter::AddKeyValue("VclBuilderException", "Unable to read .ui file: " + rExcept.Message); throw; } |