From 27ce7cf1ee3ff9c962e36f9bb51e9f6918b688a4 Mon Sep 17 00:00:00 2001 From: lethosor Date: Tue, 31 Aug 2021 00:28:42 -0400 Subject: [PATCH] check-structures-sanity: print error for untagged unions instead of aborting These come up in structures such as world.poetic_forms.all[i].subject_target without a clear fix. --- plugins/devel/check-structures-sanity/dispatch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/devel/check-structures-sanity/dispatch.cpp b/plugins/devel/check-structures-sanity/dispatch.cpp index cd288ebfe..d93833513 100644 --- a/plugins/devel/check-structures-sanity/dispatch.cpp +++ b/plugins/devel/check-structures-sanity/dispatch.cpp @@ -767,7 +767,7 @@ void Checker::dispatch_untagged_union(const QueueItem & item, const CheckedStruc return; } - UNEXPECTED; + FAIL("unhandled untagged union: " << item.path); } void Checker::check_unknown_pointer(const QueueItem & item)