History

Use exhaustive relay client error handling

Julius Marminge committed 4 months ago

Commit 2fc3ddd1 parent f8f93641 file · +9 −8Browse files

Unified · Split

packages/shared/src/relayClient.ts+9−8
@@ -585,14 +585,15 @@ export const makeCloudflaredRelayClient = Effect.fn("cloudflared.make")(function · 584 unmodified lines
585585 );
586586 yield* report("waiting_for_lock");
587587 yield* acquireInstallLock(lockPath).pipe(
588− Effect.catchTag("PlatformError", (cause) =>
589− Effect.fail(
590− new RelayClientInstallLockAcquireError({
591− lockPath,
592− cause,
593− }),
594− ),
595− ),
588+ Effect.catchTags({
589+ PlatformError: (cause) =>
590+ Effect.fail(
591+ new RelayClientInstallLockAcquireError({
592+ lockPath,
593+ cause,
594+ }),
595+ ),
596+ }),
596597 );
597598 return yield* Effect.gen(function* () {
598599 const afterLock = yield* resolve;