mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-25 18:04:58 +01:00
rpc: more detailed errors
This commit is contained in:
parent
aa696dd0ce
commit
9b871fb7c0
@ -256,7 +256,8 @@ func (c ByteStreamRPC) expectResponseType(rt ResponseType) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if h.ResponseType != rt {
|
if h.ResponseType != rt {
|
||||||
return errors.New("unexpected response type in response header")
|
return errors.New(fmt.Sprintf("unexpected response type in response header: got %#v, expected %#v. response header: %#v",
|
||||||
|
h.ResponseType, rt, h))
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user