mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 18:36:43 +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
@@ -677,7 +677,7 @@
|
||||
(let [payload (async/<! chan)]
|
||||
(try
|
||||
(handle payload)
|
||||
(catch js/Error error
|
||||
(catch :default error
|
||||
(let [type :handle-system-events/failed]
|
||||
(js/console.error (str type) (clj->js payload) "\n" error)
|
||||
(state/pub-event! [:instrument {:type type
|
||||
|
||||
Reference in New Issue
Block a user