X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FException.pm;h=07f587ddbb44f09c1a11aa151f78cb619f2431b6;hb=d095c62d491afe010e870f31b4e0d1419273cba9;hp=1f56cb5d44799cea7f5773a0d7d2e6eea1e0c871;hpb=0c11ad0ee5c8407f6b87d6e15c62a1b445076dc0;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Exception.pm b/lib/DBIx/Class/Exception.pm index 1f56cb5..07f587d 100644 --- a/lib/DBIx/Class/Exception.pm +++ b/lib/DBIx/Class/Exception.pm @@ -3,6 +3,11 @@ package DBIx::Class::Exception; use strict; use warnings; +# load Carp early to prevent tickling of the ::Internal stash being +# interpreted as "Carp is already loaded" by some braindead loader +use Carp (); +$Carp::Internal{ (__PACKAGE__) }++; + use DBIx::Class::Carp (); use overload