Skip to content

Commit

Permalink
QoL: error immediately if there is not hostagent URL
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardGomezEscandell committed Oct 26, 2023
1 parent a94f53b commit 3c0f424
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions windows-agent/internal/proservices/landscape/landscape.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ func (c *Client) Connect(ctx context.Context) (err error) {
if err != nil {
return err
}
if address == "" {
return errors.New("no hostagent URL provided in the Landscape configuration")
}

defer func() {
go c.keepConnected(ctx, address)
Expand Down

0 comments on commit 3c0f424

Please sign in to comment.