Skip to content

Commit 69297a8

Browse files
Merge pull request #7 from dipdup-io/feature/rpc-request-error
Rpc error
2 parents 8bb9650 + cfa9645 commit 69297a8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pkg/rpc/post.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,7 @@ func post[T any](ctx context.Context, api API, req Request, output *Response[T])
4747
return err
4848
}
4949

50-
if output.Error != nil {
51-
return errors.Wrapf(ErrRequest, "request %d error: %s", output.ID, output.Error.Error())
52-
}
53-
54-
return nil
50+
return output.Error
5551
}
5652

5753
func closeWithLogError(stream io.ReadCloser) {

0 commit comments

Comments
 (0)