lua-users home
lua-l archive

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


> 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