mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 09:26:28 +00:00
Use catch :default for default error handling in cljs
This is considered normal practice for cljs. See https://clojure.atlassian.net/browse/CLJS-661 for when it was introduced and background on it
This commit is contained in:
committed by
Tienson Qin
parent
ae114afbd8
commit
2ce6dfad41
@@ -348,7 +348,7 @@
|
||||
(if (and custom? (not custom-query?))
|
||||
(async/put! (state/get-reactive-custom-queries-chan) [f query])
|
||||
(f)))
|
||||
(catch js/Error e
|
||||
(catch :default e
|
||||
(js/console.error e)))))))))))))
|
||||
|
||||
(defn set-key-value
|
||||
@@ -378,7 +378,7 @@
|
||||
(do
|
||||
(async/<! (async/timeout 2000))
|
||||
(async/put! chan [f query])))
|
||||
(catch js/Error error
|
||||
(catch :default error
|
||||
(let [type :custom-query/failed]
|
||||
(js/console.error (str type "\n" query))
|
||||
(js/console.error error)))))
|
||||
|
||||
Reference in New Issue
Block a user