mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 10:56:32 +00:00
enhance(asset-sync): add more api exceptions
This commit is contained in:
@@ -13,7 +13,9 @@
|
||||
(defn- handle-remote-ex
|
||||
[resp]
|
||||
(if-let [e ({:graph-not-exist r.ex/ex-remote-graph-not-exist
|
||||
:graph-not-ready r.ex/ex-remote-graph-not-ready}
|
||||
:graph-not-ready r.ex/ex-remote-graph-not-ready
|
||||
:bad-request-body r.ex/ex-bad-request-body
|
||||
:not-allowed r.ex/ex-not-allowed}
|
||||
(:type (:ex-data resp)))]
|
||||
(throw e)
|
||||
resp))
|
||||
|
||||
Reference in New Issue
Block a user