Need to load the error class or tests fail
Dave Rolsky [Tue, 16 Sep 2008 18:41:04 +0000 (18:41 +0000)]
lib/Moose/Meta/Class.pm

index e16a85e..1fab159 100644 (file)
@@ -683,6 +683,8 @@ sub create_error {
 
     my $class = ref $self ? $self->error_class : "Moose::Error::Default";
 
+    Class::MOP::load_class($class);
+
     $class->new(
         Carp::caller_info($args{depth}),
         %args