Pre: Catch Throwable, not Exception.
This commit is contained in:
parent
2c1745fa3b
commit
0c51cb6236
2 changed files with 3 additions and 3 deletions
|
@ -33,7 +33,7 @@
|
|||
(clojure.core.async/go
|
||||
(try
|
||||
(do ~@body)
|
||||
(catch Exception ex#
|
||||
(catch Throwable ex#
|
||||
(clojure.core.async/>! ~chan [nil ex#]))))
|
||||
~chan)))
|
||||
|
||||
|
@ -56,7 +56,7 @@
|
|||
(clojure.core.async/go
|
||||
(try
|
||||
(clojure.core.async/>! pc-chan# [(do ~@body) nil])
|
||||
(catch Exception ex#
|
||||
(catch Throwable ex#
|
||||
(clojure.core.async/>! pc-chan# [nil ex#]))))
|
||||
pc-chan#)))
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@
|
|||
(do
|
||||
(<? (execute! db ["ROLLBACK TRANSACTION"]))
|
||||
[nil e])))
|
||||
(catch #?(:clj Exception :cljs js/Error) e
|
||||
(catch #?(:clj Throwable :cljs js/Error) e
|
||||
[nil e]))))
|
||||
|
||||
(defn get-user-version [db]
|
||||
|
|
Loading…
Reference in a new issue