app/vmctl: follow-up after 27668c9d01

* remove duplications in error messages
* mention the change in CHANGELOG.md

27668c9d01
Signed-off-by: hagen1778 <roman@victoriametrics.com>
(cherry picked from commit 39c405ed4d)
This commit is contained in:
hagen1778 2023-12-11 15:30:47 +01:00
parent 61f940591f
commit 307bcb8d4d
No known key found for this signature in database
GPG Key ID: 3BF75F3741CA9640
2 changed files with 4 additions and 3 deletions

View File

@ -358,13 +358,13 @@ func (c *Client) getSeries() ([]*Series, error) {
func (c *Client) do(q influx.Query) ([]queryValues, error) { func (c *Client) do(q influx.Query) ([]queryValues, error) {
res, err := c.Query(q) res, err := c.Query(q)
if err != nil { if err != nil {
return nil, fmt.Errorf("query %q err: %s", q.Command, err) return nil, fmt.Errorf("query error: %s", err)
} }
if res.Error() != nil { if res.Error() != nil {
return nil, fmt.Errorf("query %q err: %s", q.Command, res.Error()) return nil, fmt.Errorf("response error: %s", res.Error())
} }
if len(res.Results) < 1 { if len(res.Results) < 1 {
return nil, fmt.Errorf("exploration query %q returned 0 results", q.Command) return nil, fmt.Errorf("query returned 0 results")
} }
return parseResult(res.Results[0]) return parseResult(res.Results[0])
} }

View File

@ -66,6 +66,7 @@ The sandbox cluster installation is running under the constant load generated by
* BUGFIX: [vmbackupmanager](https://docs.victoriametrics.com/vmbackupmanager.html): fix `vmbackupmanager` not deleting previous object versions from S3 when applying retention policy with `-deleteAllObjectVersions` command-line flag. * BUGFIX: [vmbackupmanager](https://docs.victoriametrics.com/vmbackupmanager.html): fix `vmbackupmanager` not deleting previous object versions from S3 when applying retention policy with `-deleteAllObjectVersions` command-line flag.
* BUGFIX: [vminsert](https://docs.victoriametrics.com/Cluster-VictoriaMetrics.html): fix panic when ingesting data via [NewRelic protocol](https://docs.victoriametrics.com/#how-to-send-data-from-newrelic-agent) into VictoriaMetrics cluster. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5416). * BUGFIX: [vminsert](https://docs.victoriametrics.com/Cluster-VictoriaMetrics.html): fix panic when ingesting data via [NewRelic protocol](https://docs.victoriametrics.com/#how-to-send-data-from-newrelic-agent) into VictoriaMetrics cluster. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5416).
* BUGFIX: properly escape `<` character in responses returned via [`/federate`](https://docs.victoriametrics.com/#federation) endpoint. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5431). * BUGFIX: properly escape `<` character in responses returned via [`/federate`](https://docs.victoriametrics.com/#federation) endpoint. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5431).
* BUGFIX: [vmctl](https://docs.victoriametrics.com/vmctl.html): check for Error field in response from influx client during migration. Before, only network errors were checked. Thanks to @wozz for the [pull request](https://github.com/VictoriaMetrics/VictoriaMetrics/pull/5446).
## [v1.95.1](https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.95.1) ## [v1.95.1](https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.95.1)