Commit 0612ce9b by Marcus Efraimsson

cloudwatch: return early if execute query returns error

This will stop a segfault from happening
parent f0fb8123
...@@ -133,6 +133,7 @@ func (e *CloudWatchExecutor) executeTimeSeriesQuery(ctx context.Context, queryCo ...@@ -133,6 +133,7 @@ func (e *CloudWatchExecutor) executeTimeSeriesQuery(ctx context.Context, queryCo
result.Results[query.RefId] = &tsdb.QueryResult{ result.Results[query.RefId] = &tsdb.QueryResult{
Error: err, Error: err,
} }
return nil
} }
result.Results[queryRes.RefId] = queryRes result.Results[queryRes.RefId] = queryRes
return nil return nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment