Skip to content

Commit

Permalink
CLJS-2891: stop including data in ex-info message
Browse files Browse the repository at this point in the history
  • Loading branch information
mfikes committed Sep 7, 2018
1 parent 033d19c commit 5f0fabc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/main/cljs/cljs/spec/alpha.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,10 @@
(let [ed (assoc (explain-data* arg-spec [:args]
(if-let [name (spec-name arg-spec)] [name] []) [] args)
::args args)]
(throw (js/Error.
(throw (ex-info
(str
"Call to " (->sym v) " did not conform to spec:\n"
(with-out-str (explain-out ed))))))))))
"Call to " (->sym v) " did not conform to spec.")
ed)))))))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; impl ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defn- recur-limit? [rmap id path k]
Expand Down
2 changes: 1 addition & 1 deletion src/main/cljs/cljs/spec/test/alpha.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
(when caller
{::caller caller}))]
(throw (ex-info
(str "Call to " v " did not conform to spec:\n" (with-out-str (s/explain-out ed)))
(str "Call to " v " did not conform to spec." )
ed)))
conformed)))]
(doto (fn [& args]
Expand Down

0 comments on commit 5f0fabc

Please sign in to comment.