File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 323
323
(let [ed (assoc (explain-data* arg-spec [:args ]
324
324
(if-let [name (spec-name arg-spec)] [name] []) [] args)
325
325
::args args)]
326
- (throw (js/Error.
326
+ (throw (ex-info
327
327
(str
328
- " Call to " (->sym v) " did not conform to spec: \n "
329
- ( with-out-str ( explain-out ed))) )))))))
328
+ " Call to " (->sym v) " did not conform to spec. " )
329
+ ed )))))))
330
330
331
331
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; impl ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
332
332
(defn- recur-limit? [rmap id path k]
Original file line number Diff line number Diff line change 102
102
(when caller
103
103
{::caller caller}))]
104
104
(throw (ex-info
105
- (str " Call to " v " did not conform to spec: \n " ( with-out-str ( s/explain-out ed)) )
105
+ (str " Call to " v " did not conform to spec. " )
106
106
ed)))
107
107
conformed)))]
108
108
(doto (fn [& args]
You can’t perform that action at this time.
0 commit comments