Correct error message to include 'Maybe' as implemented parametric type.
wu-lee [Wed, 1 Apr 2009 15:11:38 +0000 (16:11 +0100)]
lib/Mouse/Util/TypeConstraints.pm

index 8f048da..6a9ee57 100644 (file)
@@ -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 {