From: Dave Rolsky Date: Tue, 16 Sep 2008 18:41:04 +0000 (+0000) Subject: Need to load the error class or tests fail X-Git-Tag: 0.58~15 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a810a01f3b014240da072a5f04c30d444dd8706f;p=gitmo%2FMoose.git Need to load the error class or tests fail --- diff --git a/lib/Moose/Meta/Class.pm b/lib/Moose/Meta/Class.pm index e16a85e..1fab159 100644 --- a/lib/Moose/Meta/Class.pm +++ b/lib/Moose/Meta/Class.pm @@ -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