improve error message

pull/11624/head
Mitsuhiro Tanda 7 years ago
parent 4c59be4f5b
commit 77220456b6
  1. 4
      pkg/tsdb/cloudwatch/cloudwatch.go

@ -112,6 +112,10 @@ func (e *CloudWatchExecutor) executeTimeSeriesQuery(ctx context.Context, queryCo
continue continue
} }
if query.Id == "" && query.Expression != "" {
return nil, fmt.Errorf("Invalid query: id should be set if using expression")
}
eg.Go(func() error { eg.Go(func() error {
queryRes, err := e.executeQuery(ectx, query, queryContext) queryRes, err := e.executeQuery(ectx, query, queryContext)
if err != nil { if err != nil {

Loading…
Cancel
Save