From 85e59df8929e3c794b871e0cad26499b016abd60 Mon Sep 17 00:00:00 2001 From: Titanium Brain Date: Thu, 23 Jul 2026 20:18:11 +0100 Subject: [PATCH] fix(LuaParser): return an error when missing required field --- ly-core/src/root.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ly-core/src/root.zig b/ly-core/src/root.zig index ad32484..c52d7d4 100644 --- a/ly-core/src/root.zig +++ b/ly-core/src/root.zig @@ -208,7 +208,7 @@ pub fn LuaParser(comptime Struct: type) type { // handle missing required fields if (lua.isNil(-1)) { - return; + return error.MissingRequiredField; } const actual_type_info = @typeInfo(actual_type);