CloudwatchLogs: send error down to client (#36277)

* CloudwatchLogs: send error down to client

* Move error handling down to startLiveQuery
pull/36442/head
Zoltán Bedi 4 years ago committed by GitHub
parent f62bc59688
commit 0ae8a85828
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      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
}

Loading…
Cancel
Save