mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-22 00:13:52 +01:00
rpc/dataconn: fix go1.15-discovered recursive Error() method impl
rpc/dataconn/dataconn_client.go:69:9: Sprintf format %s with arg e causes recursive Error method call
This commit is contained in:
parent
1190c0f6d2
commit
480176ba2d
@ -66,7 +66,7 @@ type ProtocolError struct {
|
||||
}
|
||||
|
||||
func (e *ProtocolError) Error() string {
|
||||
return fmt.Sprintf("protocol error: %s", e)
|
||||
return fmt.Sprintf("protocol error: %s", e.cause)
|
||||
}
|
||||
|
||||
func (c *Client) recv(ctx context.Context, conn *stream.Conn, res proto.Message) error {
|
||||
|
Loading…
Reference in New Issue
Block a user