[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Debugging a C error handling function
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 14 Jul 2008 12:38:14 -0300
> Under normal circumstances, it works just fine. However, under certain
> circumstances (I'm not totally sure what all of these are yet) such as
> C pcalls a lua script which calls a C function which pcalls a faulty
> lua script, the error handler breaks. [...]
Your error handler is for which pcall, the first or the second? And which
pcall gives the ERRERR error?
> I'm not entirely certain under what circumstances ERRERR is returned,
> and I haven't been able to gather this information from reading the
> lua source.
ERRERR is returned when there is an error while running the error function.
That is, there is some error that triggers the error function, and then
there is another error in the error function itself.
-- Roberto