Skip to content

Commit

Permalink
Merge pull request #136 from actboy168/patch-2
Browse files Browse the repository at this point in the history
Compatible with Lua 5.4
  • Loading branch information
mikke89 authored Oct 19, 2020
2 parents ff920d6 + c71a1b1 commit 5b8f95c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source/Lua/GlobalLuaFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ int LuaPrint(lua_State* L)
lua_call(L, 1, 1);
s = lua_tostring(L, -1); /* get result */
if (s == nullptr)
return luaL_error(L, LUA_QL("tostring") " must return a string to "
LUA_QL("print"));
return luaL_error(L, "'tostring' must return a string to 'print'");
if (i>1)
output += "\t";
output += String(s);
Expand Down

0 comments on commit 5b8f95c

Please sign in to comment.