[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Missing line number information in errors
- From: "Tom Spilman" <tom@...>
- Date: Wed, 23 Apr 2003 18:19:42 -0000
--- In lua-l@yahoogroups.com, "Wim Couwenberg" <w.couwenberg@c...>
wrote:
> What happens is that the luaL_loadbuffer call fails and leaves an
error
> message on the stack. Then lua_pcall tries to call a string
value... There
> you go! So you should check the result code of the
luaL_loadbuffer call and
> report the error string if it failed. See section 3.10 "Loading
Lua chunks"
> of the manual. (luaL_loadbuffer is a simple lua_load wrapper.)
Duh... that was it! Thanks. Tom