Skip to content

Commit 3f19406

Browse files
committed
chore: 增加 gist 错误日志
1 parent 5a0bdb1 commit 3f19406

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sub-store",
3-
"version": "2.14.258",
3+
"version": "2.14.260",
44
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
55
"main": "src/main.js",
66
"scripts": {

backend/src/restful/miscs.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,14 @@ async function gistBackup(req, res) {
153153
}
154154
success(res);
155155
} catch (err) {
156+
$.error(
157+
`Failed to ${action} gist data.\nReason: ${err.message ?? err}`,
158+
);
156159
failed(
157160
res,
158161
new InternalServerError(
159162
'BACKUP_FAILED',
160-
`Failed to ${action} data to gist!`,
163+
`Failed to ${action} gist data!`,
161164
`Reason: ${err.message ?? err}`,
162165
),
163166
);

0 commit comments

Comments
 (0)