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
585 );585 );
586 yield* report("waiting_for_lock");586 yield* report("waiting_for_lock");
587 yield* acquireInstallLock(lockPath).pipe(587 yield* acquireInstallLock(lockPath).pipe(
588 Effect.catchTag("PlatformError", (cause) =>588 Effect.catchTags({
589 Effect.fail(589 PlatformError: (cause) =>
590 new RelayClientInstallLockAcquireError({590 Effect.fail(
591 lockPath,591 new RelayClientInstallLockAcquireError({
592 cause,592 lockPath,
593 }),593 cause,
594 ),594 }),
595 ),595 ),
596 }),
596 );597 );
597 return yield* Effect.gen(function* () {598 return yield* Effect.gen(function* () {
598 const afterLock = yield* resolve;599 const afterLock = yield* resolve;