mirror of
https://codeberg.org/fairyglade/ly.git
synced 2026-08-09 07:09:13 +02:00
fix(LuaParser): return an error when missing required field
This commit is contained in:
parent
5a9cf57560
commit
85e59df892
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue