From: Jesse Luehrs Date: Fri, 22 Apr 2011 03:25:33 +0000 (-0500) Subject: roles don't have throw_error X-Git-Tag: 2.0100~205 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=24aab1abaa65d987539fb040c8362ba72cdb361b;p=gitmo%2FMoose.git roles don't have throw_error --- diff --git a/lib/Moose/Meta/Role.pm b/lib/Moose/Meta/Role.pm index 33f6347..4aa0b4b 100644 --- a/lib/Moose/Meta/Role.pm +++ b/lib/Moose/Meta/Role.pm @@ -523,7 +523,7 @@ sub create { if exists $options{methods}; (ref $options{roles} eq 'ARRAY') - || $class->throw_error("You must pass an ARRAY ref of roles", data => $options{roles}) + || confess "You must pass an ARRAY ref of roles" if exists $options{roles}; my $package = delete $options{package};