From 66f5d68e707bb3401973240a6fb087f34bfa4998 Mon Sep 17 00:00:00 2001 From: Joey Ballentine <34788790+joeyballentine@users.noreply.github.com> Date: Sun, 30 Jun 2024 14:57:07 -0400 Subject: [PATCH] Update src/renderer/contexts/ExecutionContext.tsx Co-authored-by: Michael Schmidt --- src/renderer/contexts/ExecutionContext.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/contexts/ExecutionContext.tsx b/src/renderer/contexts/ExecutionContext.tsx index cb5b2ec1f..5a665578a 100644 --- a/src/renderer/contexts/ExecutionContext.tsx +++ b/src/renderer/contexts/ExecutionContext.tsx @@ -479,7 +479,7 @@ export const ExecutionProvider = memo(({ children }: React.PropsWithChildren<{}> }); } } catch (err: unknown) { - if (!CancelError.isCancel(err)) { + if (!(err instanceof CancelError)) { sendAlert({ type: AlertType.ERROR, message: `An unexpected error occurred: ${String(err)}`,