vcl/source/window/builder.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 08d265144421deed247c23af36b0a6d41c35bf1f
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Wed Feb 28 16:41:04 2024 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Thu Feb 29 07:38:25 2024 +0100

    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.gran...@collabora.co.uk>

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;
     }
 

Reply via email to