lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Is there a reason why luaL_argerror doesn't also display extramsg when it detects the problem is with self?

This has been noted and corrected recently in the base code. It'll be
part of the next minor release of 5.2. In the meantime, here is a patch:

161c161,162
<       return luaL_error(L, "calling " LUA_QS " on bad self", ar.name);
---
>       return luaL_error(L, "calling " LUA_QS " on bad self (%s)",
>                            ar.name, extramsg);