From: Jesse Luehrs Date: Thu, 28 Apr 2011 09:49:20 +0000 (-0500) Subject: add the Devel::PartialDump stuff to ::Delta X-Git-Tag: 2.0002~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=38cd62b26050dd8514a75ceeca3f9ad61dd71caf;p=gitmo%2FMoose.git add the Devel::PartialDump stuff to ::Delta --- diff --git a/lib/Moose/Manual/Delta.pod b/lib/Moose/Manual/Delta.pod index 01752cf..a21bd80 100644 --- a/lib/Moose/Manual/Delta.pod +++ b/lib/Moose/Manual/Delta.pod @@ -18,6 +18,29 @@ feature. If you encounter a problem and have a solution but don't see it documented here, or think we missed an important feature, please send us a patch. +=head1 2.0002 + +=over 4 + +=item More useful type constraint error messages + +If you have L version 0.14 or higher installed, Moose's +type constraint error messages will use it to display the invalid value, rather +than just displaying it directly. This will generally be much more useful. For +instance, instead of this: + + Attribute (foo) does not pass the type constraint because: Validation failed for 'ArrayRef[Int]' with value ARRAY(0x275eed8) + +the error message will instead look like + + Attribute (foo) does not pass the type constraint because: Validation failed for 'ArrayRef[Int]' with value [ "a" ] + +Note that L can't be made a direct dependency at the +moment, because it uses Moose itself, but we're considering options to make +this easier. + +=back + =head1 2.0000 =over 4