From: Brandon L. Black Date: Tue, 26 Jun 2007 13:19:33 +0000 (+0000) Subject: DBIx::Class::Exception should pass off any exception objects untouched, not just... X-Git-Tag: v0.08010~137 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=02ddab6d63ad4d8e52dc818d00f855de19478488;p=dbsrgits%2FDBIx-Class.git DBIx::Class::Exception should pass off any exception objects untouched, not just its own --- diff --git a/lib/DBIx/Class/Exception.pm b/lib/DBIx/Class/Exception.pm index 77a3a96..34d709e 100644 --- a/lib/DBIx/Class/Exception.pm +++ b/lib/DBIx/Class/Exception.pm @@ -49,8 +49,8 @@ L. sub throw { my ($class, $msg, $stacktrace) = @_; - # Don't re-encapsulate multiple times - die $msg if blessed($msg) && $msg->isa('DBIx::Class::Exception'); + # Don't re-encapsulate exception objects of any kind + die $msg if blessed($msg); # use Carp::Clan's croak if we're not stack tracing if(!$stacktrace) {