From: Shawn M Moore Date: Tue, 17 Jun 2008 02:37:03 +0000 (+0000) Subject: Adjust the Role::extends error message to match Moose's ;) X-Git-Tag: 0.19~315 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=964eaf79edd2e1a4bc4582da06f8cdc18fc75035;p=gitmo%2FMouse.git Adjust the Role::extends error message to match Moose's ;) --- diff --git a/lib/Mouse/Role.pm b/lib/Mouse/Role.pm index f5da880..ddd435a 100644 --- a/lib/Mouse/Role.pm +++ b/lib/Mouse/Role.pm @@ -12,7 +12,7 @@ do { my %exports = ( extends => sub { return sub { - confess "Mouse::Role does not currently support 'extends'"; + confess "Role does not currently support 'extends'"; } }, ); diff --git a/t/400-define-role.t b/t/400-define-role.t index 4c27de0..7ece4ec 100644 --- a/t/400-define-role.t +++ b/t/400-define-role.t @@ -16,5 +16,7 @@ throws_ok { use Mouse::Role; extends 'Role::Parent'; -} qr/Mouse::Role does not currently support 'extends'/; + + no Mouse::Role; +} qr/Role does not currently support 'extends'/;