CloudwatchLogs: send error down to client (#36277)

* CloudwatchLogs: send error down to client

* Move error handling down to startLiveQuery
This commit is contained in:
Zoltán Bedi
2021-07-05 16:12:58 +02:00
committed by GitHub
parent f62bc59688
commit 0ae8a85828
+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
}