From 8a404544b074bfcf84b8564d56e0004b6b4cf502 Mon Sep 17 00:00:00 2001 From: Horis <821938089@qq.com> Date: Fri, 19 Apr 2024 20:35:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/web/src/components/SourceDebug.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/web/src/components/SourceDebug.vue b/modules/web/src/components/SourceDebug.vue index 257da167e..bea24f133 100644 --- a/modules/web/src/components/SourceDebug.vue +++ b/modules/web/src/components/SourceDebug.vue @@ -41,7 +41,12 @@ const appendDebugMsg = (msg) => { }; const startDebug = async () => { printDebug.value = ""; - await API.saveSource(store.currentSource); + try { + await API.saveSource(store.currentSource); + } catch (e) { + store.debugFinish() + throw e + } API.debug( store.currentSourceUrl, searchKey.value || store.searchKey,