Skip to content

Commit

Permalink
client: Use %w to wrap error correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
jholdstock committed Aug 23, 2023
1 parent c42fea1 commit c0cbe40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c0cbe40

Please sign in to comment.