enhance(asset-sync): add more api exceptions

This commit is contained in:
rcmerci
2024-11-15 17:58:12 +08:00
committed by Tienson Qin
parent 941903f34e
commit 8f7f1fc31d
2 changed files with 15 additions and 1 deletions

View File

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