mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 00:13:30 +01:00
lib/snapshot: fix error message format for failed HTTP request (#3559)
This commit is contained in:
parent
1ae98867a5
commit
990c874b25
@ -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