Use exhaustive relay client error handling

Co-authored-by: codex <[email protected]>
This commit is contained in:
Julius Marmingeandcodex committed 2026-06-20 20:17:07 -07:00
1 parent f8f9364b0c
commit 2fc3ddda75
1 file changed
+9 -8
+9 -8
View File
@@ -585,14 +585,15 @@ export const makeCloudflaredRelayClient = Effect.fn("cloudflared.make")(function
);
yield* report("waiting_for_lock");
yield* acquireInstallLock(lockPath).pipe(
Effect.catchTag("PlatformError", (cause) =>
Effect.fail(
new RelayClientInstallLockAcquireError({
lockPath,
cause,
}),
),
),
Effect.catchTags({
PlatformError: (cause) =>
Effect.fail(
new RelayClientInstallLockAcquireError({
lockPath,
cause,
}),
),
}),
);
return yield* Effect.gen(function* () {
const afterLock = yield* resolve;