mirror of
https://github.com/grafana/grafana.git
synced 2026-07-29 15:59:50 -05:00
CloudwatchLogs: send error down to client (#36277)
* CloudwatchLogs: send error down to client * Move error handling down to startLiveQuery
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user