Explorar el Código

chore: add more info to RemoteAPI/request

rcmerci hace 3 años
padre
commit
4ea29b97f1
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  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]