authorgravatar for 102943475+aoright@users.noreply.github.comaoright <102943475+aoright@users.noreply.github.com> 2026-08-19 01:38:55+08:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-08-18 13:38:55-04:00
log1896f39a38f6fe980ea137fbc402dde8be17b83a
tree4b7be0d1b31e25aa2b994660b6579c5723a8ba65
parent82b8a9380298509d68170961d9717be62836e490
signature Signed by PGP key B5690EEEBB952194

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

Signed-off-by: aoright <102943475+aoright@users.noreply.github.com>

1 files changed, 1 insertions(+), 2 deletions(-)

apps/server/src/pullRequest/GitHubPullRequestCli.ts+1-2
......@@ -1451,8 +1451,7 @@ export const make = Effect.gen(function* () {
14511451 // the page. Narrowed to a command that ran and was refused: a missing `gh` or a
14521452 // signed-out one fails the same way for every request.
14531453 Effect.catchTags({
1454 GitHubCliCommandError: (error) =>
1455 filesPage(1).pipe(Effect.catch(() => Effect.fail(error))),
1454 GitHubCliCommandError: (error) => filesPage(1).pipe(Effect.mapError(() => error)),
14561455 }),
14571456 );
14581457 },