mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 10:56:32 +00:00
chore: refine error logging
This commit is contained in:
@@ -784,6 +784,8 @@
|
||||
(defn- <retry-rsapi [f]
|
||||
(go-loop [n 3]
|
||||
(let [r (<! (f))]
|
||||
(when (instance? ExceptionInfo r)
|
||||
(js/console.error "rsapi error:" (str (ex-cause r))))
|
||||
(if (and (instance? ExceptionInfo r)
|
||||
(string/index-of (str (ex-cause r)) "operation timed out")
|
||||
(> n 0))
|
||||
|
||||
Reference in New Issue
Block a user