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,