mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
vmctl: check error in response from influxdb (#5446)
This commit is contained in:
parent
e13dc04fbf
commit
27668c9d01
1 changed files with 3 additions and 0 deletions
|
@ -360,6 +360,9 @@ func (c *Client) do(q influx.Query) ([]queryValues, error) {
|
|||
if err != nil {
|
||||
return nil, fmt.Errorf("query %q err: %s", q.Command, err)
|
||||
}
|
||||
if res.Error() != nil {
|
||||
return nil, fmt.Errorf("query %q err: %s", q.Command, res.Error())
|
||||
}
|
||||
if len(res.Results) < 1 {
|
||||
return nil, fmt.Errorf("exploration query %q returned 0 results", q.Command)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue