Skip to content

Commit

Permalink
Fail if the field we are searching over is unsupported
Browse files Browse the repository at this point in the history
This is not a very user-friendly way of failing but OK for now
  • Loading branch information
michaelklishin committed Sep 22, 2012
1 parent 3675690 commit e732c9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/leiningen/search.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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\""
Expand Down

0 comments on commit e732c9f

Please sign in to comment.