chore: refine error logging

This commit is contained in:
Andelf
2023-04-19 20:31:25 +08:00
parent 64050a4929
commit 95c34f34ae
2 changed files with 2 additions and 1 deletions

View File

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