From 3f1940630a7036083a91c1a53b604cb1fb69ffc2 Mon Sep 17 00:00:00 2001 From: xream Date: Tue, 19 Mar 2024 21:29:10 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=A2=9E=E5=8A=A0=20gist=20=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/restful/miscs.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/backend/package.json b/backend/package.json index 0d3aed2..c7f4928 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.258", + "version": "2.14.260", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/restful/miscs.js b/backend/src/restful/miscs.js index 30a0ffa..527e962 100644 --- a/backend/src/restful/miscs.js +++ b/backend/src/restful/miscs.js @@ -153,11 +153,14 @@ async function gistBackup(req, res) { } success(res); } catch (err) { + $.error( + `Failed to ${action} gist data.\nReason: ${err.message ?? err}`, + ); failed( res, new InternalServerError( 'BACKUP_FAILED', - `Failed to ${action} data to gist!`, + `Failed to ${action} gist data!`, `Reason: ${err.message ?? err}`, ), );