Prefer catchTags for command resolution
Co-authored-by: codex <[email protected]>
This commit is contained in:
1 parent
97e5cd3bf7
commit
4dbd5a4ec7
1 file changed
+3
-1
@@ -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),
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user