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:
Phil Hagelberg 2010-01-31 21:11:48 -08:00
parent 56683c3862
commit 024f167d86

View file

@ -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)))