Skip to content

Commit 5f0fabc

Browse files
committed
CLJS-2891: stop including data in ex-info message
1 parent 033d19c commit 5f0fabc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/cljs/cljs/spec/alpha.cljs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,10 +323,10 @@
323323
(let [ed (assoc (explain-data* arg-spec [:args]
324324
(if-let [name (spec-name arg-spec)] [name] []) [] args)
325325
::args args)]
326-
(throw (js/Error.
326+
(throw (ex-info
327327
(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)))))))
330330

331331
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; impl ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
332332
(defn- recur-limit? [rmap id path k]

src/main/cljs/cljs/spec/test/alpha.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
(when caller
103103
{::caller caller}))]
104104
(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." )
106106
ed)))
107107
conformed)))]
108108
(doto (fn [& args]

0 commit comments

Comments
 (0)