Prefer catchTags for command resolution

Co-authored-by: codex <[email protected]>
This commit is contained in:
Julius Marmingeandcodex committed 2026-06-20 04:20:20 -07:00
1 parent 97e5cd3bf7
commit 4dbd5a4ec7
1 file changed
+3 -1
+3 -1
View File
@@ -604,7 +604,9 @@ export const isCommandAvailable = Effect.fn("shell.isCommandAvailable")(function
) {
return yield* resolveCommandPath(command, options).pipe(
Effect.as(true),
Effect.catchTag("CommandResolutionError", () => Effect.succeed(false)),
Effect.catchTags({
CommandResolutionError: () => Effect.succeed(false),
}),
);
});