desktop(wsl): use Effect.catchTags over catchTag per convention

This commit is contained in:
Josh Gratton committed 2026-06-22 15:50:22 -04:00
1 parent 897da56c44
commit 93f5e082a8
1 file changed
+9 -8
+9 -8
View File
@@ -121,14 +121,15 @@ export const layer = Layer.effect(
const stopExisting = (id: DesktopBackendPool.BackendInstanceId) =>
pool.unregister(id).pipe(
Effect.catchTag("DesktopBackendPoolCannotUnregisterPrimaryError", (cause) =>
// Should never happen — wsl: ids are not the primary id — but
// log loudly if the logic ever drifts.
logWslBackendWarning("refusing to unregister primary as wsl instance", {
id,
error: cause.message,
}),
),
Effect.catchTags({
DesktopBackendPoolCannotUnregisterPrimaryError: (cause) =>
// Should never happen — wsl: ids are not the primary id — but
// log loudly if the logic ever drifts.
logWslBackendWarning("refusing to unregister primary as wsl instance", {
id,
error: cause.message,
}),
}),
);
const startNew = Effect.fn("desktop.wslBackend.startNew")(function* (input: {