fix: 乐观缓存未捕获错误

This commit is contained in:
xream 2024-05-30 13:10:08 +08:00
parent 047c21fe70
commit 9ce5916414
No known key found for this signature in database
GPG Key ID: 1D2C5225471789F9
2 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "sub-store", "name": "sub-store",
"version": "2.14.322", "version": "2.14.323",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
"main": "src/main.js", "main": "src/main.js",
"scripts": { "scripts": {

View File

@ -57,7 +57,11 @@ export default async function download(
timeout, timeout,
proxy, proxy,
true, true,
); ).catch((e) => {
$.error(
`乐观缓存: URL ${url} 更新缓存发生错误 ${e.message ?? e}`,
);
});
return cached; return cached;
} }
} }