We were leaving the package name in the arg list
Dave Rolsky [Sat, 21 Feb 2009 15:28:35 +0000 (15:28 +0000)]
lib/Moose/Util/TypeConstraints.pm

index 41fdc2d..3980c55 100644 (file)
@@ -667,6 +667,7 @@ sub add_parameterizable_type {
 }
 
 sub _throw_error {
+    shift;
     require Moose;
     unshift @_, 'Moose';
     goto &Moose::throw_error;