mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-02 18:39:05 +01:00
ignore auto-updater QUIC protocol error (#1450)
This commit is contained in:
parent
9bae030371
commit
648fa4c49a
@ -546,6 +546,14 @@ process.on("uncaughtException", (error) => {
|
|||||||
if (caughtException) {
|
if (caughtException) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if the error is related to QUIC protocol, if so, ignore (can happen with the updater)
|
||||||
|
if (error?.message?.includes("net::ERR_QUIC_PROTOCOL_ERROR")) {
|
||||||
|
console.log("Ignoring QUIC protocol error:", error.message);
|
||||||
|
console.log("Stack Trace:", error.stack);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
caughtException = true;
|
caughtException = true;
|
||||||
console.log("Uncaught Exception, shutting down: ", error);
|
console.log("Uncaught Exception, shutting down: ", error);
|
||||||
console.log("Stack Trace:", error.stack);
|
console.log("Stack Trace:", error.stack);
|
||||||
|
Loading…
Reference in New Issue
Block a user