Skip Menu |
Report information
Id: 128461
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: cpan [at] zoffix.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [LTA] EXPORT sub errors do not show line number
Download (untitled) / with headers
text/plain 651b
In the examples below, no location of the error is printed. The bigger the app, the harder this error would be to track down. Even when `die`ing inside the EXPORT sub, no line number is shown. zoffix@leliana:/tmp/tmp.9PVg6XdMEY$ cat Foo.pm6 sub EXPORT ($) {} zoffix@leliana:/tmp/tmp.9PVg6XdMEY$ perl6 -I. -e 'use Foo' ===SORRY!=== Too few positionals passed; expected 1 argument but got 0 zoffix@leliana:/tmp/tmp.9PVg6XdMEY$ pico Foo.pm6 zoffix@leliana:/tmp/tmp.9PVg6XdMEY$ cat Foo.pm6 sub EXPORT ($a = '') {$a or die "Bad arg"} zoffix@leliana:/tmp/tmp.9PVg6XdMEY$ perl6 -I. -e 'use Foo' ===SORRY!=== Bad arg zoffix@leliana:/tmp/tmp.9PVg6XdMEY$


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

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org