Permalink
Browse files

CLJS-484 Throw exception instead of trying to throw string in defmult…

…i compiler macro
  • Loading branch information...
1 parent e1e14cb commit 2e1ee414689547c65c0feafd157048ccecd5c3ad @bendlas bendlas committed with swannodette Mar 11, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/clj/cljs/core.clj
View
@@ -1152,7 +1152,7 @@
(conj (meta mm-name) m)
m)]
(when (= (count options) 1)
- (throw "The syntax for defmulti has changed. Example: (defmulti name dispatch-fn :default dispatch-value)"))
+ (throw (Exception. "The syntax for defmulti has changed. Example: (defmulti name dispatch-fn :default dispatch-value)")))
(let [options (apply hash-map options)
default (core/get options :default :default)]
(check-valid-options options :default :hierarchy)

0 comments on commit 2e1ee41

Please sign in to comment.