Remove overzealous arity catch.
This was catching an artity problem deeper in the code and reporting it as "wrong number of arguments to task". Thanks to Mark McGranahan for noticing it.
This commit is contained in:
parent
56683c3862
commit
024f167d86
1 changed files with 3 additions and 5 deletions
|
@ -75,10 +75,8 @@
|
|||
compile-path (:compile-path (first args))]
|
||||
(when compile-path (.mkdirs (File. compile-path)))
|
||||
(binding [*compile-path* compile-path]
|
||||
(try
|
||||
(apply (resolve-task task) args)
|
||||
(catch IllegalArgumentException _
|
||||
(abort (format "Wrong number of arguments to task %s."
|
||||
task)))))
|
||||
;; TODO: can we catch only task-level arity problems here?
|
||||
;; compare args and (:arglists (meta (resolve-task task)))?
|
||||
(apply (resolve-task task) args))
|
||||
;; In case tests or some other task started any:
|
||||
(shutdown-agents)))
|
||||
|
|
Loading…
Reference in a new issue