[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua error reporting from C ?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 17 Nov 2011 21:29:16 -0200
> Often when I write scripts they contain errors, however I do not know
> of any way to find/report those errors from C. All I'm left with from
> my program is simply "Could not execute `file.lua`".
This message does not come from Lua. You should check the return code
and then print the error message at the top of the stack, which can
be retrieved with lua_tostring(L,-1).