From: Peter van Dijk Date: Fri, 24 Mar 2017 10:44:01 +0000 (+0100) Subject: lua_typename now uses lua_type X-Git-Tag: rec-4.1.0-alpha1~171^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F5200%2Fhead;p=thirdparty%2Fpdns.git lua_typename now uses lua_type luawrapper 84c01a4 --- diff --git a/ext/luawrapper/include/LuaContext.hpp b/ext/luawrapper/include/LuaContext.hpp index 6ee104880e..9416c906c3 100644 --- a/ext/luawrapper/include/LuaContext.hpp +++ b/ext/luawrapper/include/LuaContext.hpp @@ -1626,7 +1626,7 @@ private: const auto& firstElem = Reader::type>::read(state, index); if (!firstElem) - throw WrongTypeException(lua_typename(state, index), typeid(TFirstType)); + throw WrongTypeException(lua_typename(state, lua_type(state, index)), typeid(TFirstType)); Binder binder{ callback, *firstElem }; return readIntoFunction(state, retValueTag, binder, index + 1, othersTags...); @@ -1640,7 +1640,7 @@ private: const auto& firstElem = Reader::type>::read(state, index); if (!firstElem) - throw WrongTypeException(lua_typename(state, index), typeid(TFirstType)); + throw WrongTypeException(lua_typename(state, lua_type(state, index)), typeid(TFirstType)); Binder binder{ callback, *firstElem }; return readIntoFunction(state, retValueTag, binder, index + 1, othersTags...);