Browse files

More information on error in build-option-map.

  • Loading branch information...
1 parent 3aa0ad8 commit f1d36cef49d50250c23f36a729eaf1fec270ecd9 @guv committed Aug 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/clojure/options.clj
4 src/clojure/options.clj
@@ -341,8 +341,8 @@
(recur (next option-args), (conj! option-map a))
- (IllegalArgumentException.
- (format "Found unknown value of unknown type \"%s\" in the optional argument list!" (type a))))))
+ (IllegalArgumentException.
+ (format "Found unexpected value \"%s\" of unexpected type \"%s\" in the optional argument list! Remaining args: %s" a (type a) option-args)))))
(persistent! option-map))))
(defn ^{:skip-wiki true} create-defn+opts-decl

0 comments on commit f1d36ce

Please sign in to comment.