[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [proposal] debug.geterrfunc to get current error function
- From: Matthew Wild <mwild1@...>
- Date: Sun, 13 Mar 2011 12:41:00 +0000
On 13 March 2011 12:38, GrayFace <firstname.lastname@example.org> wrote:
> While working on my pure Lua persistence library I found that I need a way
> to get the current error function, that is, the one passed to the last
> lua_pcall. I need to add additional information to error message and then
> call the standard error function to turn it into a full error info. In my
> case additional information is the object for which persistence failed.
Can you not throw a table, containing the message and additional
information, then throw again just the message from your handler?