We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09c1369 commit 8e88387Copy full SHA for 8e88387
src/main/cljs/cljs/spec.cljs
@@ -202,11 +202,10 @@
202
(defn- gensub
203
[spec overrides path rmap form]
204
;;(prn {:spec spec :over overrides :path path :form form})
205
- (if-let [spec (specize spec)]
+ (let [spec (specize spec)]
206
(if-let [g (c/or (get overrides path) (gen* spec overrides path rmap))]
207
(gen/such-that #(valid? spec %) g 100)
208
- (throw (js/Error. (str "Unable to construct gen at: " path " for: " (abbrev form)))))
209
- (throw (js/Error. (str "Unable to construct gen at: " path ", " (abbrev form) " can not be made a spec")))))
+ (throw (js/Error. (str "Unable to construct gen at: " path " for: " (abbrev form)))))))
210
211
(defn gen
212
"Given a spec, returns the generator for it, or throws if none can
0 commit comments