From: Dave Rolsky Date: Fri, 30 Dec 2011 19:21:19 +0000 (-0600) Subject: Fix error message buglet X-Git-Tag: 2.0500~111 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0a58c428c30c068fa9ff897a3f5a56edfc9d131f;p=gitmo%2FMoose.git Fix error message buglet --- diff --git a/lib/Moose/Meta/Role/Application/ToRole.pm b/lib/Moose/Meta/Role/Application/ToRole.pm index b3038bf..e8ab886 100644 --- a/lib/Moose/Meta/Role/Application/ToRole.pm +++ b/lib/Moose/Meta/Role/Application/ToRole.pm @@ -23,7 +23,7 @@ sub check_role_exclusions { foreach my $excluded_role_name ($role1->get_excluded_roles_list) { if ( $role2->does_role($excluded_role_name) ) { require Moose; - Moose->throw_error("The class " . $role2->name . " does the excluded role '$excluded_role_name'"); + Moose->throw_error("The role " . $role2->name . " does the excluded role '$excluded_role_name'"); } $role2->add_excluded_roles($excluded_role_name); }