Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

line number for Too few possionals passed error incorrectly points to last block in a HEREDOC #6099

Open
p6rt opened this issue Feb 26, 2017 · 1 comment
Labels
LTA Less Than Awesome; typically an error message that could be better

Comments

@p6rt
Copy link

p6rt commented Feb 26, 2017

Migrated from rt.perl.org#130862 (status was 'new')

Searchable as RT130862$

@p6rt
Copy link
Author

p6rt commented Feb 26, 2017

From @zoffixznet

02​:30 IOninja m​: sub x (% (​:$made-on, :$routines, :$total, :$unique)) {␤␤␤␤␤␤␤␤␤␤␤␤␤ Q​:c​:to/END/␤y{$total}y␤END␤ }( |%(​:42made-on, :42routines, :42total, :42unique) )
02​:30 camelia rakudo-moar dd4dfb​: OUTPUT​: «Too few positionals passed; expected 1 argument but got 0␤ in sub x at <tmp> line 15␤ in block <unit> at <tmp> line 1␤␤»
02​:31 IOninja m​: sub x (% (​:$made-on, :$routines, :$total, :$unique)) {␤␤␤␤␤␤␤␤␤␤␤␤␤ Q​:c​:to/END/␤y{$total}y␤␤␤␤␤␤␤␤␤␤␤{'meow'}␤END␤ }( |%(​:42made-on, :42routines, :42total, :42unique) )
02​:31 camelia rakudo-moar dd4dfb​: OUTPUT​: «Too few positionals passed; expected 1 argument but got 0␤ in sub x at <tmp> line 26␤ in block <unit> at <tmp> line 1␤␤»
02​:31 IOninja Bug. If anyone wants to report (reported `line` is for the HEREDOC's last block, even though the issue is in `sub x`'s arguments)

https://irclog.perlgeek.de/perl6/2017-02-26#i_14166725

@p6rt p6rt added the LTA Less Than Awesome; typically an error message that could be better label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTA Less Than Awesome; typically an error message that could be better
Projects
None yet
Development

No branches or pull requests

1 participant