From: Jesse Luehrs Date: Thu, 28 Mar 2013 21:21:05 +0000 (-0500) Subject: oops X-Git-Tag: 2.0801~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMoose.git;a=commitdiff_plain;h=26e8c4da4fce7b78e32ce88a4f324d86cf64d65b oops --- diff --git a/lib/Moose/Exporter.pm b/lib/Moose/Exporter.pm index 961d172..af6d525 100644 --- a/lib/Moose/Exporter.pm +++ b/lib/Moose/Exporter.pm @@ -642,7 +642,7 @@ sub _apply_meta_traits { my $meta = $meta_lookup->($class); - my $type = $meta->isa('Moose::Meta::Role') ? 'Trait' + my $type = $meta->isa('Moose::Meta::Role') ? 'Role' : $meta->isa('Class::MOP::Class') ? 'Class' : Moose->throw_error('Cannot determine metaclass type for ' . 'trait application. Meta isa '