Skip to content

Commit 1d65a8f

Browse files
committed
feat(Lua): Better error messages
1 parent a4bb8c7 commit 1d65a8f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

UE4SS/src/LuaType/LuaUObject.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1117,7 +1117,8 @@ namespace RC::LuaType
11171117
}
11181118
else
11191119
{
1120-
params.lua.throw_error("[push_strproperty] StrProperty can only be set to a string or FString");
1120+
auto error = to_string(fmt::format(STR("[push_strproperty] StrProperty ({}) can only be set to a string or FString"), params.property ? params.property->GetFullName() : STR("N/A")));
1121+
params.lua.throw_error(error);
11211122
}
11221123
return;
11231124
}

0 commit comments

Comments
 (0)