mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
🔊 Add detailed logging https://github.com/siyuan-note/siyuan/issues/12606
This commit is contained in:
parent
7c7d8af650
commit
c3ae2a30f0
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ export const fetchPost = (url: string, data?: any, cb?: (response: IWebSocketDat
|
||||||
cb(response);
|
cb(response);
|
||||||
}
|
}
|
||||||
}).catch((e) => {
|
}).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")) {
|
if (url === "/api/transactions" && (e.message === "Failed to fetch" || e.message === "Unexpected end of JSON input")) {
|
||||||
kernelError();
|
kernelError();
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue