0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-08 16:18:11 -05:00

Minor improvement on try* helper on common/exceptions.

This commit is contained in:
Andrey Antukh 2021-05-04 15:16:12 +02:00 committed by Andrés Moya
parent 1bc210c9a9
commit 04ab99c8ad

View file

@ -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