mirror of
https://github.com/zrepl/zrepl.git
synced 2025-01-03 04:48:55 +01:00
rpc: actually return an error if ReqSend fails
This commit is contained in:
parent
000d8bba66
commit
4d2765e5f2
@ -86,7 +86,7 @@ func (c *Client) Send(ctx context.Context, r *pdu.SendReq) (*pdu.SendRes, zfs.St
|
||||
// TODO the returned sendStream may return a read error created by the remote side
|
||||
res, streamCopier, err := c.dataClient.ReqSend(ctx, r)
|
||||
if err != nil {
|
||||
return nil, nil, nil
|
||||
return nil, nil, err
|
||||
}
|
||||
if streamCopier == nil {
|
||||
return res, nil, nil
|
||||
|
Loading…
Reference in New Issue
Block a user