config: Don't error out on missing fields

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion
2026-08-26 15:53:20 +02:00
parent a6e5f87e24
commit 255af0f1d4

View File

@@ -207,9 +207,7 @@ pub fn LuaParser(comptime Struct: type) type {
} }
// handle missing required fields // handle missing required fields
if (lua.isNil(-1)) { if (lua.isNil(-1)) return;
return error.MissingRequiredField;
}
const actual_type_info = @typeInfo(actual_type); const actual_type_info = @typeInfo(actual_type);
errdefer |err| { errdefer |err| {