[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Help with error handler
- From: Max Ischenko <max@...>
- Date: Mon, 22 Oct 2001 16:44:11 +0300
Luiz Henrique de Figueiredo wrote:
> >I'm trying to write user-friendly reportying of Lua error.
> >want to print stack trace to the screen and also to log file.
> >When using code shown below, stack trace do not saved to logfile.
> >I'm sure that is because _ERRORMESSAGE does some extra formatting.
>
> _ERRORMESSAGE does not output anything. This is the job of _ALERT. So,
> try redefining _ALERT so that it writes to your log file.
Well, you right, but I still suck:
_ALERT = function(str)
F("Call _ALERT with %s", str)
end
My _ALERT doesn't called anyway.
--
Any sufficiently advanced technology is indistinguishable from magic.
-- Arthur C. Clarke