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
(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#)))

View file

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