[Dbix-class] exception_action fail after DBIC upgrade
Konstantin A. Pustovalov
lamoz at adriver.ru
Mon Jan 21 21:23:51 GMT 2013
>> Hi!
>>
>> Sorry for being silent. Loong russian holidays, you know )
>> But I have investigated a little. DBIC seems to not notice the
>> exception if it (exeption) stringifies to zero length string. That
>> was OK for my code since all error info was coded into exception
>> type. Till DBIC upgrade. The fix was to add some message to all
>> exceptions. Should I still pull test to fixate 0.08196 behavior?
> Yes please. While this is ultimately a problem with your code (an
> exception may *never* stringify to "", read `perldoc -f eval` for the
> exact reason why), I still want to get DBIC to handle it correctly.
>
> Cheers
>
If you mean this snip from the doc:
> If there was no error, $@ is guaranteed to be the empty string
then this is not my case. Object which stringifies to empty string is
definitely not the same as empty string (the former is true value while
latter is not).
Pull request sent.
More information about the DBIx-Class
mailing list