lua-users home
lua-l archive

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


> The error is being raised somewhere outside of my code, I don't have any
> control over that. I do catch and rethrow it, but then we're back to the
> problem of always having to create subtransactions.
> 
> Hmm... what is the relative timing between *toclose cleanups and the
> error handler for xpcall? that wasn't immediately apparent from the code.

The error handler runs still in the same scope that raised the error, so
it must run before the closing methods :-)

-- Roberto