Skip to content

Commit 7a9b62c

Browse files
committed
fix: promise errors are now thrown correctly
1 parent a808d77 commit 7a9b62c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/internal.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,10 @@ export async function letsCandidate({
491491
staleMap,
492492
HookPayload
493493
})
494-
);
494+
).catch((error: Error) => {
495+
runningQueryCache.delete(key);
496+
throw error;
497+
});
495498

496499
return execution;
497500
}

0 commit comments

Comments
 (0)