From: Daisuke Maki Date: Sat, 7 Mar 2009 09:44:01 +0000 (+0000) Subject: oops, that used confess X-Git-Tag: 0.19~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c1c94293a5d4956ffa8219d8e6d804624832ff34;p=gitmo%2FMouse.git oops, that used confess --- diff --git a/lib/Mouse/Meta/Attribute.pm b/lib/Mouse/Meta/Attribute.pm index 42b1d39..20e8006 100644 --- a/lib/Mouse/Meta/Attribute.pm +++ b/lib/Mouse/Meta/Attribute.pm @@ -257,7 +257,7 @@ sub create { if exists $args{coerce}; if (exists $args{isa}) { - warn "Got isa => $args{isa}, but Mouse does not yet support parameterized types for containers other than ArrayRef and HashRef (rt.cpan.org #39795)" + confess "Got isa => $args{isa}, but Mouse does not yet support parameterized types for containers other than ArrayRef and HashRef (rt.cpan.org #39795)" if $args{isa} =~ /^([^\[]+)\[.+\]$/ && $1 ne 'ArrayRef' && $1 ne 'HashRef';