lua-users home
lua-l archive

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


I have the following piece of code:

local handler = function(errstr)
	Log(LOG_ALERT, errstr)
end
local code, msg = call(dispatch_command, 
	{commands, cmd}, 'x', handler)


When error occurs I get output like this:
attempt to index field `user' (a nil value)


Can I retrieve in what chunk (file) and in what line did error occurs?

-- 
Q. How many Mac programmers does it take to change a lightbulb?
A. None. You need a mouse to pull it down.