From: gfx Date: Sat, 28 Nov 2009 01:23:33 +0000 (+0900) Subject: Fix a error message in apply_all_roles X-Git-Tag: 0.40_09~24 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9ad58623f924abc8cc746e98855302e4c49f5f9a;p=gitmo%2FMouse.git Fix a error message in apply_all_roles --- diff --git a/lib/Mouse/Util.pm b/lib/Mouse/Util.pm index cac02a1..2de5935 100644 --- a/lib/Mouse/Util.pm +++ b/lib/Mouse/Util.pm @@ -272,7 +272,7 @@ sub apply_all_roles { load_class($role_name); is_a_metarole( get_metaclass_by_name($role_name) ) - || $applicant->meta->throw_error("You can only consume roles, $role_name(".$role_name->meta.") is not a Mouse role"); + || $applicant->meta->throw_error("You can only consume roles, $role_name is not a Mouse role"); } if ( scalar @roles == 1 ) {