mirror of
				https://github.com/grafana/grafana.git
				synced 2025-02-25 18:55:37 -06:00 
			
		
		
		
	improve error message
This commit is contained in:
		@@ -112,6 +112,10 @@ func (e *CloudWatchExecutor) executeTimeSeriesQuery(ctx context.Context, queryCo
 | 
			
		||||
			continue
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if query.Id == "" && query.Expression != "" {
 | 
			
		||||
			return nil, fmt.Errorf("Invalid query: id should be set if using expression")
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		eg.Go(func() error {
 | 
			
		||||
			queryRes, err := e.executeQuery(ectx, query, queryContext)
 | 
			
		||||
			if err != nil {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user