瀏覽代碼

chore: add more info to RemoteAPI/request

rcmerci 3 年之前
父節點
當前提交
4ea29b97f1
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/main/frontend/fs/sync.cljs

+ 4 - 1
src/main/frontend/fs/sync.cljs

@@ -689,7 +689,10 @@
         (if (http/unexceptional-status? (:status resp))
         (if (http/unexceptional-status? (:status resp))
           (get-resp-json-body resp)
           (get-resp-json-body resp)
           (ex-info "request failed"
           (ex-info "request failed"
-                   {:err resp :body (get-resp-json-body resp)})))))
+                   {:err resp
+                    :body (get-resp-json-body resp)
+                    :api-name api-name
+                    :request-body body})))))
 
 
   ;; for test
   ;; for test
   (update-files [this graph-uuid txid files]
   (update-files [this graph-uuid txid files]