From: wu-lee Date: Wed, 1 Apr 2009 15:11:38 +0000 (+0100) Subject: Correct error message to include 'Maybe' as implemented parametric type. X-Git-Tag: 0.20~21 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=766534c221078e4e10d66fcc2aca0563aad54f4e;p=gitmo%2FMouse.git Correct error message to include 'Maybe' as implemented parametric type. --- diff --git a/lib/Mouse/Util/TypeConstraints.pm b/lib/Mouse/Util/TypeConstraints.pm index 8f048da..6a9ee57 100644 --- a/lib/Mouse/Util/TypeConstraints.pm +++ b/lib/Mouse/Util/TypeConstraints.pm @@ -276,7 +276,7 @@ sub _build_type_constraint { ; $code = eval $code_str or Carp::confess($@); } else { - Carp::confess("Support for parameterized types other than ArrayRef or HashRef is not implemented yet"); + Carp::confess("Support for parameterized types other than Maybe, ArrayRef or HashRef is not implemented yet"); } $TYPE{$spec} = Mouse::Meta::TypeConstraint->new( _compiled_type_constraint => $code, name => $spec ); } else {