Skip to content

Commit

Permalink
a friendlier error message
Browse files Browse the repository at this point in the history
  • Loading branch information
thorstenkramm committed Aug 9, 2022
1 parent 0b89d5a commit ea127f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/pkg/controllers/execHelper.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ func (eh *ExecutionHelper) execute(ctx context.Context,
return err
}
}
if clientIDs == "" {
logrus.Fatalf("no clients match your targeting criterea")
return nil
}

// initialize ready for new run
eh.ExecutionResults = make([]*models.Job, 0)
Expand Down

0 comments on commit ea127f7

Please sign in to comment.