[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Error handling
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 16 Feb 2006 23:12:43 -0200
> Yes but when these are kicked out of the Lua runtime they won't contain any
> error message at all. No?
That's because debug.traceback does not do anything useful with
non-string error "messages". As Romulo Bahiense has shown, it is
possible to get around that.
So, to repeat, the Lua core handles non-string error "messages" just fine.
It's just the debug library that is ignoring them. Perhaps debug.traceback
could honor __tostring.
--lhf