mirror of
https://github.com/penpot/penpot.git
synced 2026-04-28 20:58:06 +00:00
✨ Minor improvement on try* helper on common/exceptions.
This commit is contained in:
parent
1bc210c9a9
commit
04ab99c8ad
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user