lua-users home
lua-l archive

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

> In my case I want less information. The default error string looks
> something like
> 	[string "<code>"]:<line_number>: <error_message>

If you're loading Lua code with loadstring, use the optional second
argument to give an empty chunkname, as in
Then the error message will be
	:1: attempt to call global 'a' (a nil value)