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

LTA error when giving wrong number of args to signature-binding my form #2027

Open
zoffixznet opened this issue Jul 5, 2018 · 0 comments
Open
Labels
LTA Less Than Awesome; typically an error message that could be better

Comments

@zoffixznet
Copy link
Contributor

I had a lengthy line with a bunch of maps, greps, splits, and method calls, and it gave me the following error, and it wasn't too obvious that my long chain of stuff wasn't returning the correct number of things to bind.

<Zoffix_> m: my ($) := (1, 2)
<camelia> rakudo-moar f6c8159d2: OUTPUT: «Too many positionals passed to '<unit>'; expected 1 argument but got 2␤  in block <unit> at <tmp> line 1␤␤»

Instead of <unit> it should say something more descriptive, to indicate it's the stuff in the my that's not getting the right args.

@zoffixznet zoffixznet added the LTA Less Than Awesome; typically an error message that could be better label Jul 5, 2018
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