mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-23 12:31:07 +01:00
lib/snapshot: fix error message format for failed HTTP request (#3559)
This commit is contained in:
parent
34c705988e
commit
c612bb165e
@ -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{}
|
||||
|
Loading…
Reference in New Issue
Block a user