From 9430b6783ebe8667cf0678ee83c1ea6943c03684 Mon Sep 17 00:00:00 2001 From: Din Music Date: Fri, 6 Dec 2024 09:42:21 +0000 Subject: [PATCH] client/lxd: Fix unnecessary error formatting Signed-off-by: Din Music --- client/lxd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/lxd.go b/client/lxd.go index f85f0ef7f33a..44374c9daabe 100644 --- a/client/lxd.go +++ b/client/lxd.go @@ -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, "%s", response.Error) + return nil, "", api.NewStatusError(resp.StatusCode, response.Error) } return &response, etag, nil