fix: 乐观缓存未捕获错误

This commit is contained in:
xream
2024-05-30 13:10:08 +08:00
parent 8d1150e48d
commit 78ac733ed9
2 changed files with 6 additions and 2 deletions

View File

@@ -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": {

View File

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