Fixed
Details
Assignee
UnassignedUnassignedReporter
Marc O'MorainMarc O'MorainLabels
Approval
OkPatch
Code and TestPriority
MinorAffects versions
Fix versions
Details
Details
Assignee
Unassigned
UnassignedReporter
Marc O'Morain
Marc O'MorainLabels
Approval
Ok
Patch
Code and Test
Priority
Affects versions
Fix versions
Created May 3, 2018 at 1:46 PM
Updated September 14, 2021 at 2:49 PM
Resolved September 14, 2021 at 2:49 PM
Problem
When you call a
Keyword
with the wrong number of arguments, the error message does not report how many arguments were passedContext
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.Addresses CLJ-1067
Patch: clj-2350-4.patch (improves commit message over last, patch same, attribution retained)
Screened by: Alex Miller