mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 21:42:37 +08:00
cloudwatch: return early if execute query returns error
This will stop a segfault from happening
This commit is contained in:
@ -133,6 +133,7 @@ func (e *CloudWatchExecutor) executeTimeSeriesQuery(ctx context.Context, queryCo
|
||||
result.Results[query.RefId] = &tsdb.QueryResult{
|
||||
Error: err,
|
||||
}
|
||||
return nil
|
||||
}
|
||||
result.Results[queryRes.RefId] = queryRes
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user