Skip to content

Commit

Permalink
Added error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
getvictor committed Feb 29, 2024
1 parent 7738e18 commit fa1cc0e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/service/live_queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,9 @@ func (svc *Service) RunLiveQueryDeadline(

readChan, cancelFunc, err := svc.GetCampaignReader(ctx, campaign)
if err != nil {
level.Error(svc.logger).Log(
"msg", "get campaign reader", "query.id", campaign.QueryID, "campaign.id", campaign.ID, "err", err,
)
resultsCh <- fleet.QueryCampaignResult{QueryID: queryID, Error: ptr.String(err.Error()), Err: err}
return
}
Expand Down

0 comments on commit fa1cc0e

Please sign in to comment.