CloudwatchLogs: send error down to client (#36277) (#36438)

* CloudwatchLogs: send error down to client

* Move error handling down to startLiveQuery

(cherry picked from commit 0ae8a85828)

Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2021-07-05 16:34:29 +02:00
committed by GitHub
co-authored by Zoltán Bedi
parent 61ea316f10
commit 4efbf432a4
+5
View File
@@ -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
}