From be4e8124bf80012fb4625ed5d3104acfecffaf1b Mon Sep 17 00:00:00 2001 From: ZhaoLei Date: Thu, 28 Nov 2024 09:30:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=84=9A=E6=9C=AC=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E5=B0=86=E5=BC=82=E5=B8=B8=E9=80=80=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Tool/JsScript/release.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Tool/JsScript/release.js b/Tool/JsScript/release.js index ce91b3a..6c6dcda 100644 --- a/Tool/JsScript/release.js +++ b/Tool/JsScript/release.js @@ -270,9 +270,12 @@ async function connectWebSocket() { // } // PrintSuccessInNewLine("11") await connectWebSocket(); + if (!IsSuccess) { + throw new Error("发布失败"); + } // console.log('WebSocket has closed'); // The script will wait here until the WebSocket connection is closed } catch (err) { - console.error("Failed to connect or an error occurred:", err); + throw new Error(err); } })();