lua-users home
lua-l archive

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


> 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).