On September 15, 2014 6:15:14 PM EDT, Karen Etheridge via RT <bug-AnyEvent-Worker@rt.cpan.org> wrote:
Show quoted text><URL:
https://rt.cpan.org/Ticket/Display.html?id=98909 >
>
>On 2014-09-15 13:45:09, josh.kronengold@experian.com wrote:
>> $@ is not localized before success callbacks.
>>
>> Because of this, if $@ accidentally gets set, then success callbacks
>> will
>> erroneously receive errors from entirely different parts of the
>stack.
>>
>> Solution: Localize $@ before -all- callbacks (this requires a minor
>> change to
>> the tests).
>
>
>If you use Try::Tiny, all the crazy edge cases with using $@ are taken
>care of for you.
That doesn't help if you're trying to catch exceptions in workers, except that you're less likely to poison the global $@ accidentally.