From 0ae8a85828a511b12659b95e2f50de623217b51d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Bedi?= Date: Mon, 5 Jul 2021 16:12:58 +0200 Subject: [PATCH] CloudwatchLogs: send error down to client (#36277) * CloudwatchLogs: send error down to client * Move error handling down to startLiveQuery --- pkg/tsdb/cloudwatch/live.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/tsdb/cloudwatch/live.go b/pkg/tsdb/cloudwatch/live.go index 9563f5f8b14..445fa2f1415 100644 --- a/pkg/tsdb/cloudwatch/live.go +++ b/pkg/tsdb/cloudwatch/live.go @@ -241,6 +241,11 @@ func (e *cloudWatchExecutor) startLiveQuery(ctx context.Context, responseChannel startQueryOutput, err := e.executeStartQuery(ctx, logsClient, model, timeRange) if err != nil { + responseChannel <- &backend.QueryDataResponse{ + Responses: backend.Responses{ + query.RefID: {Error: err}, + }, + } return err }