Skip to content

Commit d7e4b6c

Browse files
committed
refactor(server): simplify error transformation with Effect.mapError in GitHubPullRequestCli
Signed-off-by: aoright <[email protected]>
1 parent cebac35 commit d7e4b6c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎apps/server/src/pullRequest/GitHubPullRequestCli.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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
},

0 commit comments

Comments
 (0)