Skip to content

Commit

Permalink
client/lxd: Use NewStatusError (govet)
Browse files Browse the repository at this point in the history
Signed-off-by: hamistao <[email protected]>
  • Loading branch information
hamistao committed Dec 6, 2024
1 parent 72130ef commit 7f530e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/lxd.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func lxdParseResponse(resp *http.Response) (*api.Response, string, error) {

// Handle errors
if response.Type == api.ErrorResponse {
return nil, "", api.StatusErrorf(resp.StatusCode, response.Error)
return nil, "", api.NewStatusError(resp.StatusCode, response.Error)
}

return &response, etag, nil
Expand Down

0 comments on commit 7f530e3

Please sign in to comment.