Re: mod_lua check for lua compilation error

2009-03-24 Thread Brian McCallister
On Sat, Mar 21, 2009 at 10:54 AM, Bertrand Mansion bmans...@mamasam.net wrote: In order to be able to detect if a lua file fails to compile and get an informative error message like :  Error!  /web/localhost/htdocs/info.lua:174: '=' expected near '+' instead of :  Error!  attempt to call a

Re: mod_lua check for lua compilation error

2009-03-24 Thread Peter Cawley
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,

Re: mod_lua check for lua compilation error

2009-03-24 Thread Bertrand Mansion
On Tue, Mar 24, 2009 at 7:57 PM, Brian McCallister bri...@skife.org wrote: On Sat, Mar 21, 2009 at 10:54 AM, Bertrand Mansion bmans...@mamasam.net wrote: In order to be able to detect if a lua file fails to compile and get an informative error message like :  Error!  

mod_lua check for lua compilation error

2009-03-21 Thread Bertrand Mansion
In order to be able to detect if a lua file fails to compile and get an informative error message like : Error! /web/localhost/htdocs/info.lua:174: '=' expected near '+' instead of : Error! attempt to call a nil value I suggest you move the load/pcall function from