Skip to content

Commit

Permalink
feat: 找不到资源时不通知, 仅保留日志
Browse files Browse the repository at this point in the history
  • Loading branch information
xream committed Nov 28, 2024
1 parent 9d90369 commit 815552d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sub-store",
"version": "2.14.429",
"version": "2.14.430",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
"main": "src/main.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions backend/src/restful/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ async function downloadSubscription(req, res) {
);
}
} else {
$.notify(`🌍 Sub-Store 下载订阅失败`, `❌ 未找到订阅:${name}!`);
$.error(`🌍 Sub-Store 下载订阅失败`, `❌ 未找到订阅:${name}!`);
failed(
res,
new ResourceNotFoundError(
Expand Down Expand Up @@ -457,7 +457,7 @@ async function downloadCollection(req, res) {
);
}
} else {
$.notify(
$.error(
`🌍 Sub-Store 下载组合订阅失败`,
`❌ 未找到组合订阅:${name}!`,
);
Expand Down
2 changes: 1 addition & 1 deletion backend/src/restful/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ async function getFile(req, res) {
);
}
} else {
$.notify(`🌍 Sub-Store 下载文件失败`, `❌ 未找到文件:${name}!`);
$.error(`🌍 Sub-Store 下载文件失败`, `❌ 未找到文件:${name}!`);
failed(
res,
new ResourceNotFoundError(
Expand Down

0 comments on commit 815552d

Please sign in to comment.