Bläddra i källkod

:loud_sound: Add detailed logging https://github.com/siyuan-note/siyuan/issues/12606

Daniel 9 månader sedan
förälder
incheckning
c3ae2a30f0
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      app/src/util/fetch.ts

+ 1 - 1
app/src/util/fetch.ts

@@ -67,7 +67,7 @@ export const fetchPost = (url: string, data?: any, cb?: (response: IWebSocketDat
             cb(response);
         }
     }).catch((e) => {
-        console.warn("fetch post error", e);
+        console.warn("fetch post failed [" + e + "], url [" +  url + "]");
         if (url === "/api/transactions" && (e.message === "Failed to fetch" || e.message === "Unexpected end of JSON input")) {
             kernelError();
             return;