From 9ce5916414fdcdc0555ad3602a4e36a5586c0268 Mon Sep 17 00:00:00 2001 From: xream Date: Thu, 30 May 2024 13:10:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B9=90=E8=A7=82=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E6=9C=AA=E6=8D=95=E8=8E=B7=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/utils/download.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/backend/package.json b/backend/package.json index fe46f3a..6e8cec5 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.322", + "version": "2.14.323", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/utils/download.js b/backend/src/utils/download.js index 6328106..6e031cb 100644 --- a/backend/src/utils/download.js +++ b/backend/src/utils/download.js @@ -57,7 +57,11 @@ export default async function download( timeout, proxy, true, - ); + ).catch((e) => { + $.error( + `乐观缓存: URL ${url} 更新缓存发生错误 ${e.message ?? e}`, + ); + }); return cached; } }