Skip to content

Commit 07d76ed

Browse files
igalklebanovlourd
andcommitted
Add missing beforeThrow calls in getInflightQueryAbortHandler (#1971)
Co-authored-by: Louis DeScioli <2012388+lourd@users.noreply.github.com>
1 parent 507b751 commit 07d76ed

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/util/abort.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export function getInflightQueryAbortHandler(
6161
const handler = connection.cancelQuery
6262

6363
if (!handler) {
64+
beforeThrow()
6465
throwUnsupportedInflightQueryAbortStrategyError(
6566
abortStrategy,
6667
connection.killSession ? 'kill session' : undefined,
@@ -74,6 +75,7 @@ export function getInflightQueryAbortHandler(
7475
const handler = connection.killSession
7576

7677
if (!handler) {
78+
beforeThrow()
7779
throwUnsupportedInflightQueryAbortStrategyError(
7880
abortStrategy,
7981
connection.cancelQuery ? 'cancel query' : undefined,

0 commit comments

Comments
 (0)