Skip to content

Commit 4ee2ca1

Browse files
committed
[fix] catching-rf, catching-xform: excl. callsite info
Callsite info refers to internal Truss code, so probably better to exclude to avoid possible confusion.
1 parent 274aa97 commit 4ee2ca1

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

src/taoensso/truss.cljc

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,10 @@
107107
"Private, don't use."
108108
[ns coords msg data-map cause]
109109
(let [data-map
110-
(if coords
111-
(conj {:ns ns, :coords coords} data-map)
112-
(conj {:ns ns} data-map))
110+
(cond
111+
(nil? ns) data-map
112+
coords (conj {:ns ns, :coords coords} data-map)
113+
:else (conj {:ns ns} data-map))
113114

114115
data-map
115116
(if-let [ctx *ctx*]
@@ -467,7 +468,7 @@
467468
base-data (dissoc base-data :error/msg)]
468469

469470
(fn default-error-fn [data cause] ; == (partial ex-info <msg>)
470-
(throw (ex-info msg (conj base-data data) cause)))))]
471+
(throw (ex-info* nil nil msg (conj base-data data) cause)))))]
471472

472473
(defn catching-rf
473474
"Returns wrapper around given reducing function `rf` so that if `rf`
@@ -544,7 +545,7 @@
544545
(str msg sys-newline "Error evaluating pred: " error-msg)))
545546
msg)]
546547

547-
(ex-info msg
548+
(ex-info* nil nil msg
548549

549550
(if legacy-ex-data?
550551
{:dt (impl/now-dt*)

0 commit comments

Comments
 (0)