[SCM] libtype-tiny-perl Debian packaging branch, master, updated. debian/0.016-1-48-ga7f6748

Toby Inkster mail at tobyinkster.co.uk
Mon Jul 29 12:54:59 UTC 2013


The following commit has been merged in the master branch:
commit 6da701a99c42eeac284d4b705a19a4b5432d9492
Author: Toby Inkster <mail at tobyinkster.co.uk>
Date:   Fri Jul 19 08:05:28 2013 +0100

    note default error message

diff --git a/lib/Type/Utils.pm b/lib/Type/Utils.pm
index f134327..cb950ef 100644
--- a/lib/Type/Utils.pm
+++ b/lib/Type/Utils.pm
@@ -596,6 +596,10 @@ Generate a custom error message when a value fails validation.
          Int->validate($_) or "$_ is not divisible by two";
       };
 
+Without a custom message, the messages generated by Type::Tiny are along
+the lines of I<< Value "33" did not pass type constraint "EvenInt" >>,
+which is usually reasonable.
+
 =item C<< inline_as { BLOCK } >>
 
 Generate a string of Perl code that can be used to inline the type check into

-- 
libtype-tiny-perl Debian packaging



More information about the Pkg-perl-cvs-commits mailing list