summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-02-28 16:41:04 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-02-29 07:38:25 +0100
commit08d265144421deed247c23af36b0a6d41c35bf1f (patch)
tree5f7efbdfae1fff93a6fba2a03ea3e0f26ce37978 /vcl
parent40336ee0b4acf4e359fef696c6c2a6b3fa9718e7 (diff)
assert on failure to load .ui file
otherwise I get hard to diagnose SIGSEGV further on in other code Change-Id: Ic0397c7dd532f639482dfc2ee9ec36b32023fb5a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164099 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/builder.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index 7c77fad75a53..de5c5ea1bbce 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -476,8 +476,9 @@ VclBuilder::VclBuilder(vcl::Window* pParent, const OUString& sUIDir, const OUStr
}
catch (const css::uno::Exception &rExcept)
{
- DBG_UNHANDLED_EXCEPTION("vcl.builder", "Unable to read .ui file");
+ TOOLS_WARN_EXCEPTION("vcl.builder", "Unable to read .ui file " << sUIDir << sUIFile);
CrashReporter::addKeyValue("VclBuilderException", "Unable to read .ui file: " + rExcept.Message, CrashReporter::Write);
+ assert(false && "missing ui file or missing gb_CppunitTest_use_uiconfigs dependency");
throw;
}