On Tue, Mar 24, 2009 at 6:57 PM, Brian McCallister <bri...@skife.org> wrote: > I think the lua_State may hold the compilation problems, but am not > sure, need to go poke around -- I won't have a chance for a while > still, am dealing with a family medical issue for a couple weeks > (nothing urgent, just needing attention).
The lua_State will maintain the error message on the top of the stack, although the call stack will have been unwound - you need to append it onto the error message as the error occurs (i.e. using a lua_pcall error handler function) if you want to keep it.