More robust tests of dependency lazy-loading and delay of more req loads
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / Exception.pm
index 58319d9..07f587d 100644 (file)
@@ -3,9 +3,13 @@ package DBIx::Class::Exception;
 use strict;
 use warnings;
 
-use DBIx::Class::Carp ();
+# 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
     '""' => sub { shift->{msg} },
     fallback => 1;