Improve error message when calling a keyword with the wrong number of arguments
When you call a Keyword with the wrong number of arguments, the error message does not report how many arguments were passed:
compare to calling an IFn, which does show the number of arguments passed:
The latter error message is more clear and makes it easier to debug.
The attached patch re-uses the ArityException class used elsewhere to generate error messages in the latter form when calling a keyword with the wrong number of arguments.
Screened by: Alex Miller
I've screened, but I'm not sure we'll look at it for 1.10. I will rebase if needed, no big deal.
Any update on this ticket? I’m anxious to avoid having to rebase the patch against master again.
I’ll get to it next time I cycle through.
Hi Alex, any update on this ticket? I've updated the patch to the latest master as requested, so it should be good to merge now.