Skip to content

Commit 643cef6

Browse files
refactor(preview): follow tagged error handling convention
1 parent a63122c commit 643cef6

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎apps/desktop/src/preview/Manager.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -667,9 +667,10 @@ const makeNativeOperations = Effect.fn("PreviewManager.makeOperations")(function
667667
catch: (cause) => new PreviewOperationError({ ...errorContext, cause }),
668668
}).pipe(
669669
Effect.timeout(CAPTURE_PAGE_ATTEMPT_TIMEOUT_MS),
670-
Effect.catchTag("TimeoutError", (cause) =>
671-
Effect.fail(new PreviewOperationError({ ...errorContext, cause })),
672-
),
670+
Effect.catchTags({
671+
TimeoutError: (cause) =>
672+
Effect.fail(new PreviewOperationError({ ...errorContext, cause })),
673+
}),
673674
);
674675
yield* requireCurrentGuest;
675676
return image;

0 commit comments

Comments
 (0)