This commit is contained in:
Andras Schmelczer 2025-04-13 22:06:35 +01:00
parent a82ed701ef
commit 535b76bb71
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -131,7 +131,17 @@ process.on("uncaughtException", (error) => {
if (slowFileEvents) {
return;
}
console.error("Uncaught Exception:", error);
if (
error instanceof Error &&
error.message.includes(
"WebSocket was closed before the connection was established"
)
) {
return;
}
console.error("Uncaught exception:", error);
process.exit(1);
});
@ -144,7 +154,7 @@ process.on("unhandledRejection", (error, _promise) => {
return;
}
console.error("Unhandled Rejection:", error);
console.error("Unhandled rejection:", error);
process.exit(1);
});