Skip to content
This repository was archived by the owner on Sep 6, 2025. It is now read-only.

Commit 35c3158

Browse files
committed
wrap in the underlying error
1 parent 15253cb commit 35c3158

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/zappr/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func (c *clientImpl) doRequest(req *http.Request) (int, *zapprErrorResponse, err
145145
resp, err := c.slingClient.Do(req, nil, zapprErrorResponse)
146146

147147
if resp == nil {
148-
return http.StatusInternalServerError, nil, ErrZapprServerError
148+
return http.StatusInternalServerError, nil, errwrap.Wrap(ErrZapprServerError, err)
149149
}
150150

151151
if resp.StatusCode == http.StatusUnauthorized {

0 commit comments

Comments
 (0)