Skip Menu |
 

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

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

People
Owner: Nobody in particular
Requestors: MAUKE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.43
Fixed in: (no value)



Subject: Unhelpful error message for invalid default arguments
Download (untitled) / with headers
text/plain 590b
#!perl use MooseX::Method::Signatures; method foo($v = ) { } __END__ Error parsing parameter near ')' in '($v = )' at /home/mauke/usr/lib/perl5/site_perl/5.16.1/MooseX/Method/Signatures/Meta/Method.pm line 199. This error message is unfortunate. It doesn't mention 1) the file containing the error, 2) the line number with the error, or 3) the reason why parsing failed. Instead it's just "Error", a snippet of code, and a source location that's completely bogus (as a user I do not care which exact part of the parser raised the error, I want to know where in my code the problem is!).


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.