From: Shawn M Moore Date: Mon, 8 Dec 2008 01:22:49 +0000 (+0000) Subject: Remove punctuation so the errors read better X-Git-Tag: 0.05~31 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMooseX-Role-Parameterized.git;a=commitdiff_plain;h=e039cb6c33f02264cb0e8714b8cd52bc5dccb4c5 Remove punctuation so the errors read better --- diff --git a/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm b/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm index a7c7e58..9a0c2af 100644 --- a/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm +++ b/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm @@ -32,7 +32,7 @@ sub add_parameter { if !defined($name); # need to figure out a plan for these guys.. - confess "The parameter name ($name) is currently forbidden." + confess "The parameter name ($name) is currently forbidden" if $name eq 'alias' || $name eq 'excludes'; @@ -45,7 +45,7 @@ sub construct_parameters { # need to figure out a plan for these guys.. for my $name ('alias', 'excludes') { - confess "The parameter name ($name) is currently forbidden." + confess "The parameter name ($name) is currently forbidden" if exists $args{$name}; }