lua-users home
lua-l archive

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


On 13 March 2011 12:38, GrayFace <sergroj@mail.ru> 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?

Regards,
Matthew