[CLJ-1149] Unhelpful error message from :use (and use function) when arguments are malformed Created: 17/Jan/13 Updated: 19/Aug/16
|Affects Version/s:||Release 1.4, Release 1.5|
|Fix Version/s:||Release 1.9|
the following exception happens when you have something like this(bad):
as opposed to any of these(correct):
and the exception is:
Note that this is similar to the equally unhelpful message shown in http://dev.clojure.org/jira/browse/CLJ-1140 although that is a different root cause.
Probably best to enhance the `use` function to validate its arguments before trying to apply hash-map?
|Comment by Gary Fredericks [ 26/May/13 3:17 PM ]|
I believe this applies to require as well.
|Comment by Alex Miller [ 19/Aug/16 2:25 PM ]|
As of Clojure 1.9.0-alpha11, the spec for ns will catch this and fail at compile-time: