浏览代码

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))
           (get-resp-json-body resp)
           (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
   (update-files [this graph-uuid txid files]