From 04ab99c8adc97b2b3c0622689d9975e0fe51c3ea Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 4 May 2021 15:16:12 +0200 Subject: [PATCH] :sparkles: Minor improvement on try* helper on common/exceptions. --- common/app/common/exceptions.cljc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/app/common/exceptions.cljc b/common/app/common/exceptions.cljc index 4fe202efd..5818578a9 100644 --- a/common/app/common/exceptions.cljc +++ b/common/app/common/exceptions.cljc @@ -36,7 +36,7 @@ (defn try* [f on-error] - (try (f) (catch #?(:clj Exception :cljs :default) e (on-error e)))) + (try (f) (catch #?(:clj Throwable :cljs :default) e (on-error e)))) ;; http://clj-me.cgrand.net/2013/09/11/macros-closures-and-unexpected-object-retention/ ;; Explains the use of ^:once metadata