fix: 乐观缓存未捕获错误

This commit is contained in:
xream
2024-05-30 13:10:08 +08:00
parent 047c21fe70
commit 9ce5916414
2 changed files with 6 additions and 2 deletions

View File

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