Make type constraint messages compatible with Moose's
authorgfx <gfuji@cpan.org>
Wed, 9 Jun 2010 10:40:10 +0000 (19:40 +0900)
committergfx <gfuji@cpan.org>
Wed, 9 Jun 2010 10:40:10 +0000 (19:40 +0900)
commit537873b064ad328ea662e3792b128d9b016ed38a
treeb6653d82ae71b5fd500ba63eaa16b32b89f1904a
parentb5956f03156c79cfbdd20f9526f95a9df5aa26b4
Make type constraint messages compatible with Moose's
index 81d5d35..2dd7afb 100644
--- a/lib/Mouse/Meta/TypeConstraint.pm
+++ b/lib/Mouse/Meta/TypeConstraint.pm
@@ -164,7 +164,7 @@ sub get_message {
     }
     else {
         $value = ( defined $value ? overload::StrVal($value) : 'undef' );
-        return "Validation failed for '$self' failed with value $value";
+        return "Validation failed for '$self' with value $value";
     }
 }
lib/Mouse/Meta/TypeConstraint.pm
t/001_mouse/024-isa.t
t/001_mouse/025-more-isa.t
t/001_mouse/041-enum.t
t/001_mouse/043-parameterized-type.t
t/001_mouse/810-isa-or.t
t/001_mouse/814-subtype-as.t
t/020_attributes/012_misc_attribute_tests.t
t/030_roles/017_extending_role_attrs.t