Skip to content

Commit

Permalink
request: add extra context to error
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Jul 23, 2024
1 parent 565eac5 commit 124a8cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion request.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func (c *RequestClient) Request(request RawRequest) (response RawResponse, err e
conn, err := net.DialUnix("unix", nil, c.conn)
defer func() {
if e := conn.Close(); e == nil {
err = e
err = fmt.Errorf("error while closing socket: %w", e)
}
}()

Expand Down

0 comments on commit 124a8cc

Please sign in to comment.