Permalink
Browse files

Fail if the field we are searching over is unsupported

This is not a very user-friendly way of failing but OK for now
  • Loading branch information...
1 parent 3675690 commit e732c9f3ff1a165478841f560d8083cd8f07d2c3 @michaelklishin michaelklishin committed Sep 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/leiningen/search.clj
View
@@ -100,7 +100,7 @@
"d" MAVEN/DESCRIPTION
"desc" MAVEN/DESCRIPTION
"description" MAVEN/DESCRIPTION
- MAVEN/ARTIFACT_ID))
+ (throw (IllegalArgumentException. (format "search over the field %s is not supported; known fields: id, description (aliased as d), group (aliased as group)" s)))))
(defn- split-query
"Splits \"field:query\" into \"field\" and \"query\""

0 comments on commit e732c9f

Please sign in to comment.