From 255af0f1d4d48b25ee36bd63c4acb765b74c874d Mon Sep 17 00:00:00 2001 From: AnErrupTion Date: Wed, 26 Aug 2026 15:53:20 +0200 Subject: [PATCH] config: Don't error out on missing fields Signed-off-by: AnErrupTion --- ly-core/src/root.zig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ly-core/src/root.zig b/ly-core/src/root.zig index c52d7d4..8f92402 100644 --- a/ly-core/src/root.zig +++ b/ly-core/src/root.zig @@ -207,9 +207,7 @@ pub fn LuaParser(comptime Struct: type) type { } // handle missing required fields - if (lua.isNil(-1)) { - return error.MissingRequiredField; - } + if (lua.isNil(-1)) return; const actual_type_info = @typeInfo(actual_type); errdefer |err| {