Преглед изворни кода

fix(influxdb): return internal influxdb errors

ref #6523
bergquist пре 9 година
родитељ
комит
e04d27c0b0
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      pkg/tsdb/influxdb/influxdb.go

+ 4 - 0
pkg/tsdb/influxdb/influxdb.go

@@ -82,6 +82,10 @@ func (e *InfluxDBExecutor) Execute(ctx context.Context, queries tsdb.QuerySlice,
 		return result.WithError(err)
 	}
 
+	if response.Err != nil {
+		return result.WithError(response.Err)
+	}
+
 	result.QueryResults = make(map[string]*tsdb.QueryResult)
 	result.QueryResults["A"] = e.ResponseParser.Parse(&response, query)