mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/snapshot: fix error message format for failed HTTP request (#3559)
This commit is contained in:
parent
34c705988e
commit
c612bb165e
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue