From: Florian Ragwitz Date: Thu, 16 Jul 2009 21:50:21 +0000 (+0200) Subject: Fix error message. X-Git-Tag: 0.21~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a78379c84791662b5d7f1f31c895fa82a2e51255;p=gitmo%2FMooseX-AttributeHelpers.git Fix error message. --- diff --git a/lib/MooseX/AttributeHelpers/Trait/Base.pm b/lib/MooseX/AttributeHelpers/Trait/Base.pm index fb1e818..fbdfd9b 100644 --- a/lib/MooseX/AttributeHelpers/Trait/Base.pm +++ b/lib/MooseX/AttributeHelpers/Trait/Base.pm @@ -160,7 +160,7 @@ after 'install_accessors' => sub { $method_code = $attr->_curry_sub($body, $curried_arg); } else { - confess "curries parameter must be ref type HASH or CODE"; + confess "curries parameter must be ref type ARRAY or CODE"; } my $method = MooseX::AttributeHelpers::Meta::Method::Curried->wrap( @@ -168,7 +168,7 @@ after 'install_accessors' => sub { package_name => $class_name, name => $curried_name, ); - + $attr->associate_method($method); $class->add_method($curried_name => $method); }