diff --git a/src/components/sql-file/SqlFileExecutionDialog.vue b/src/components/sql-file/SqlFileExecutionDialog.vue index 82e5815d1..bec8047ed 100644 --- a/src/components/sql-file/SqlFileExecutionDialog.vue +++ b/src/components/sql-file/SqlFileExecutionDialog.vue @@ -298,7 +298,10 @@ async function cancelExecution() { cancelling.value = true; if (!executionStarted.value) return; try { - await cancelSqlFileExecution(executionId.value); + const cancelled = await cancelSqlFileExecution(executionId.value); + if (!cancelled) { + throw new Error("Cancel request was not accepted"); + } } catch (e: any) { cancelRequested.value = false; cancelling.value = false;