Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/ps5mh/xLua into ps5mh-master
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Aug 14, 2019
2 parents be73186 + 517fc8f commit 1d436a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Assets/XLua/Src/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1368,8 +1368,9 @@ public static void SetCSTable(RealStatePtr L, Type type, int cls_table)
LuaAPI.xlua_pushasciistring(L, path[i]);
if (0 != LuaAPI.xlua_pgettable(L, -2))
{
var err = LuaAPI.lua_tostring(L, -1);
LuaAPI.lua_settop(L, oldTop);
throw new Exception("SetCSTable for [" + type + "] error: " + LuaAPI.lua_tostring(L, -1));
throw new Exception("SetCSTable for [" + type + "] error: " + err);
}
if (LuaAPI.lua_isnil(L, -1))
{
Expand Down

0 comments on commit 1d436a6

Please sign in to comment.