Skip to content

Commit da73f03

Browse files
committed
[fix] [#346] [#340] Malformed :chsk/bad-package error
This was unfortunately preventing clients from manually handling malformed packages, and leading to confusing errors (e.g. #340).
1 parent cc84303 commit da73f03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/taoensso/sente.cljc

+3-3
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,12 @@
203203
(defn- unpack "packed->[clj ?cb-uuid]"
204204
[packer packed]
205205
(let [[packed ?format] (parse-packed packed)
206-
unpacked #_[clj ?cb-uuid]
206+
unpacked ; [clj ?cb-uuid]
207207
(try
208208
(interfaces/unpack packer packed)
209209
(catch #?(:clj Throwable :cljs :default) t
210-
(debugf "Bad package: %s (%s)" packed t)
211-
[:chsk/bad-package packed]))
210+
(timbre/warnf t "Bad package: %s" packed)
211+
[[:chsk/bad-package packed] nil]))
212212

213213
[clj ?cb-uuid]
214214
(case ?format

0 commit comments

Comments
 (0)