From: gfx Date: Thu, 17 Sep 2009 00:33:33 +0000 (+0900) Subject: Warn about missing associated methoes, instead of die. X-Git-Tag: 0.32~55 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c8c1aeafc0aadddad72f8b4d53b0876850151869;p=gitmo%2FMouse.git Warn about missing associated methoes, instead of die. --- diff --git a/lib/Mouse/Meta/Attribute.pm b/lib/Mouse/Meta/Attribute.pm index 4c220b1..b41c075 100644 --- a/lib/Mouse/Meta/Attribute.pm +++ b/lib/Mouse/Meta/Attribute.pm @@ -261,7 +261,7 @@ sub create { } if($associated_methods == 0 && $is_metadata ne 'bare'){ - confess(qq{Attribute ($name) of class }.$class->name.qq{ has no associated methods (did you mean to provide an "is" argument?)}); + Carp::cluck(qq{Attribute ($name) of class }.$class->name.qq{ has no associated methods (did you mean to provide an "is" argument?)}); } return $attribute;