client: Use %w to wrap error correctly.

This commit is contained in:
jholdstock 2023-08-23 13:56:36 +01:00 committed by Jamie Holdstock
parent e80ebfea13
commit c052365be8

View File

@ -220,7 +220,7 @@ func (c *Client) do(ctx context.Context, method, path string, addr stdaddr.Addre
err = ValidateServerSignature(reply, respBody, c.PubKey)
if err != nil {
return fmt.Errorf("authenticate server response: %v", err)
return fmt.Errorf("authenticate server response: %w", err)
}
err = json.Unmarshal(respBody, resp)