From c612bb165e5620e6090b3ed1a0b50b2cf59ea3a3 Mon Sep 17 00:00:00 2001 From: Zakhar Bessarab Date: Wed, 28 Dec 2022 21:04:11 +0400 Subject: [PATCH] lib/snapshot: fix error message format for failed HTTP request (#3559) --- lib/snapshot/snapshot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/snapshot/snapshot.go b/lib/snapshot/snapshot.go index b7847fa9b..f02f008ba 100644 --- a/lib/snapshot/snapshot.go +++ b/lib/snapshot/snapshot.go @@ -39,7 +39,7 @@ func Create(createSnapshotURL string) (string, error) { return "", err } if resp.StatusCode != http.StatusOK { - return "", fmt.Errorf("unexpected status code returned from %q; expecting %d; got %d; response body: %q", createSnapshotURL, resp.StatusCode, http.StatusOK, body) + return "", fmt.Errorf("unexpected status code returned from %q; expecting %d; got %d; response body: %q", createSnapshotURL, http.StatusOK, resp.StatusCode, body) } snap := snapshot{}