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:
parent
1bc210c9a9
commit
04ab99c8ad
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue