This commit is contained in:
Horis 2024-04-19 20:35:45 +08:00
parent 53bfea9e67
commit 8a404544b0

View File

@ -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,