[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: luaL_argerror (5.2) bad self
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 24 Dec 2012 11:33:42 -0200
> 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);