Skip to content

Commit

Permalink
Fix jab catch in cljs
Browse files Browse the repository at this point in the history
  • Loading branch information
verberktstan committed Jun 25, 2024
1 parent 19c2e1c commit 3399729
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/swark/core.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@
(let [result (if (zero? retries-left)
(try
(apply f args)
(catch #?(:cljs :default :clj Throwable) t (Throwable->map t)))
(catch
#?(:cljs :default :clj Throwable)
t
#?(:cljs t :clj (Throwable->map t))))
(apply jab f args))]
(cond
(zero? retries-left) {:throwable result :retries-left retries-left :n n}
Expand Down

0 comments on commit 3399729

Please sign in to comment.