From d8020dae7a2c61849a95ed526aa4b7d6e18b2812 Mon Sep 17 00:00:00 2001 From: enpitsulin Date: Wed, 15 Nov 2023 17:48:52 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E4=B8=AD=E6=96=AD=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.ts b/main.ts index 5f6c169..efcaaeb 100644 --- a/main.ts +++ b/main.ts @@ -137,7 +137,9 @@ async function doAttendanceForAccount(token: string) { if (data.code === 0 && data.message === 'OK') { console.log(`${character.nickName}签到成功, 获得了${data.data.awards.map(a => a.resource.name + '' + a.count + '个').join(',')}`); } else { - console.log(`${character.nickName}签到失败, 错误消息: ${data.message} raw response json: ${JSON.stringify(data)}`) + console.error(`${character.nickName}签到失败, 错误消息: ${data.message} raw response json: ${JSON.stringify(data)}`) + // quit ci with error + process.exit(1) } }) )