X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FMethod%2FConstructor.pm;h=deed6b026b8a1699111cb8b74cf659ae62f137bb;hb=a1d1c5cc366a1881fe5ed25c0f7b3eb60999854d;hp=a96977dd73345c7f29cb0d384e6f17200bea45a0;hpb=a4cbb3cb944aa43521dfa69a9f04b206c6b7a6ea;p=gitmo%2FMouse.git diff --git a/lib/Mouse/Meta/Method/Constructor.pm b/lib/Mouse/Meta/Method/Constructor.pm index a96977d..deed6b0 100644 --- a/lib/Mouse/Meta/Method/Constructor.pm +++ b/lib/Mouse/Meta/Method/Constructor.pm @@ -77,7 +77,7 @@ sub _generate_processattrs { my $post_process = ''; if(defined $type_constraint){ $post_process .= "\$checks[$index]->($instance_slot)"; - $post_process .= " or $attr_var->verify_type_constraint_error(q{$key}, $instance_slot, $constraint_var);\n"; + $post_process .= " or $attr_var->verify_type_constraint_error($instance_slot, $constraint_var);\n"; } if($is_weak_ref){ $post_process .= "Scalar::Util::weaken($instance_slot) if ref $instance_slot;\n";