Skip Menu |
 

This queue is for tickets about the MooseX-Method-Signatures CPAN distribution.

Report information
The Basics
Id: 52612
Status: new
Priority: 0/
Queue: MooseX-Method-Signatures

People
Owner: Nobody in particular
Requestors: ijw.bitcard [...] cack.org.uk
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.29
Fixed in: (no value)



MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: text/plain
Charset: utf8
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 1315
Download (untitled) / with headers
text/plain 1.2k
Here's an output from MooseX::Method::Signatures when a validation fails: Validation failed for 'MooseX::Types::Structured::Tuple[MooseX::Types::Structured::Tuple[Object,Defined],MooseX::Types::Structured::Dict[]]' failed with value [ [ test=HASH(0xe641e8), undef ], { } ], Internal Validation Error is: Validation failed for 'MooseX::Types::Structured::Tuple[Object,Defined]' failed with value [ test={ }, undef ] at /home/user/perl5/lib/perl5/MooseX/Method/Signatures/Meta/Method.pm line 443 MooseX::Method::Signatures::Meta::Method::validate('MooseX::Method::Signatures::Meta::Method=HASH(0xe641b8)', 'ARRAY(0x16bd478)') called at /home/user/perl5/lib/perl5/MooseX/Method/Signatures/Meta/Method.pm line 145 test::thing('test=HASH(0xe641e8)', 'undef') called at mxmstest.pl line 21 Here's an example of what the output should look like: Method signature validation failed for call to test::thing(): arg '$a' must be type 'Defined', received value was 'undef' at mxmstest.pl line 21 Note the important points here: - no line numbers from within MooseX::Signatures - a small amount of information describing something that needs fixing (either the value or the declaration for a specific argument) - information relating to the signature ($a) rather than the type validator (tuples, etc.)


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.