lib/snapshot: fix error message format for failed HTTP request (#3559)

This commit is contained in:
Zakhar Bessarab 2022-12-28 21:04:11 +04:00 committed by Aliaksandr Valialkin
parent 1ae98867a5
commit 990c874b25
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1

View File

@ -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{}