Horis 2 tahun lalu
induk
melakukan
5a8ee8d4f8
1 mengubah file dengan 6 tambahan dan 1 penghapusan
  1. 6 1
      modules/web/src/components/SourceDebug.vue

+ 6 - 1
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,