refactor(server): simplify error transformation with Effect.mapError in GitHubPullRequestCli (#7385)

Signed-off-by: aoright <[email protected]>
This commit is contained in:
aoright authored and GitHub committed 2026-08-18 13:38:55 -04:00
1 parent 82b8a93802
commit 1896f39a38
1 file changed
+1 -2
@@ -1451,8 +1451,7 @@ export const make = Effect.gen(function* () {
// the page. Narrowed to a command that ran and was refused: a missing `gh` or a
// signed-out one fails the same way for every request.
Effect.catchTags({
GitHubCliCommandError: (error) =>
filesPage(1).pipe(Effect.catch(() => Effect.fail(error))),
GitHubCliCommandError: (error) => filesPage(1).pipe(Effect.mapError(() => error)),
}),
);
},