refactor(server): simplify error transformation with Effect.mapError in GitHubPullRequestCli (#7385)
Signed-off-by: aoright <[email protected]>
This commit is contained in:
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)),
|
||||
}),
|
||||
);
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user