Use exhaustive relay client error handling
Co-authored-by: codex <[email protected]>
This commit is contained in:
1 parent
f8f9364b0c
commit
2fc3ddda75
1 file changed
+9
-8
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user