From 3399729c36563575179ffddc27610a1f2cffb2c8 Mon Sep 17 00:00:00 2001 From: Stan Verberkt Date: Tue, 25 Jun 2024 12:46:35 +0200 Subject: [PATCH] Fix jab catch in cljs --- src/swark/core.cljc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/swark/core.cljc b/src/swark/core.cljc index c20bef4..c98bfb4 100644 --- a/src/swark/core.cljc +++ b/src/swark/core.cljc @@ -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}