Pre: Catch Throwable, not Exception.

This commit is contained in:
Nick Alexander 2016-07-27 08:55:45 -07:00
parent 2c1745fa3b
commit 0c51cb6236
2 changed files with 3 additions and 3 deletions

View file

@ -33,7 +33,7 @@
(clojure.core.async/go (clojure.core.async/go
(try (try
(do ~@body) (do ~@body)
(catch Exception ex# (catch Throwable ex#
(clojure.core.async/>! ~chan [nil ex#])))) (clojure.core.async/>! ~chan [nil ex#]))))
~chan))) ~chan)))
@ -56,7 +56,7 @@
(clojure.core.async/go (clojure.core.async/go
(try (try
(clojure.core.async/>! pc-chan# [(do ~@body) nil]) (clojure.core.async/>! pc-chan# [(do ~@body) nil])
(catch Exception ex# (catch Throwable ex#
(clojure.core.async/>! pc-chan# [nil ex#])))) (clojure.core.async/>! pc-chan# [nil ex#]))))
pc-chan#))) pc-chan#)))

View file

@ -85,7 +85,7 @@
(do (do
(<? (execute! db ["ROLLBACK TRANSACTION"])) (<? (execute! db ["ROLLBACK TRANSACTION"]))
[nil e]))) [nil e])))
(catch #?(:clj Exception :cljs js/Error) e (catch #?(:clj Throwable :cljs js/Error) e
[nil e])))) [nil e]))))
(defn get-user-version [db] (defn get-user-version [db]