* 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:
co-authored by
Zoltán Bedi
parent
61ea316f10
commit
4efbf432a4
@@ -241,6 +241,11 @@ func (e *cloudWatchExecutor) startLiveQuery(ctx context.Context, responseChannel
|
|||||||
|
|
||||||
startQueryOutput, err := e.executeStartQuery(ctx, logsClient, model, timeRange)
|
startQueryOutput, err := e.executeStartQuery(ctx, logsClient, model, timeRange)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
responseChannel <- &backend.QueryDataResponse{
|
||||||
|
Responses: backend.Responses{
|
||||||
|
query.RefID: {Error: err},
|
||||||
|
},
|
||||||
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user