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:
Gabriel Horner
2022-09-22 10:19:35 -04:00
committed by Tienson Qin
parent ae114afbd8
commit 2ce6dfad41
49 changed files with 82 additions and 82 deletions

View File

@@ -293,7 +293,7 @@
:else
content)]
new-content)
(catch js/Error _e
(catch :default _e
content))
content))
@@ -1292,7 +1292,7 @@
(not= (string/trim db-content-without-heading)
(string/trim value)))
(save-block-aux! db-block value opts))))
(catch js/Error error
(catch :default error
(log/error :save-block-failed error))))))))
(defn- clean-content!
@@ -1605,7 +1605,7 @@
@commands/*initial-commands)
(and last-command
(commands/get-matched-commands last-command)))))
(catch js/Error e
(catch :default e
(js/console.error e)
nil)))
@@ -1625,7 +1625,7 @@
(commands/get-matched-commands
last-command
(commands/block-commands-map))))))
(catch js/Error _error
(catch :default _error
nil)))
(defn auto-complete?