# override a specific class
$meta = Class::MOP::Class->initialize($class);
( blessed($meta) && $meta->isa('Moose::Meta::Class') )
- || confess "You already have a &meta function, but it does not return a Moose::Meta::Class";
+ || confess "$class already has a &meta function, but it does not return a Moose::Meta::Class ($meta)";
}
else {
# NOTE:
eval 'use Moose;';
::ok($@, '... could not load moose without correct metaclass');
::like($@,
- qr/^You already have a \&meta function\, but it does not return a Moose\:\:Meta\:\:Class/,
+ qr/^Bar already has a \&meta function\, but it does not return a Moose\:\:Meta\:\:Class/,
'... got the right error too');
}