Skip to content

Commit

Permalink
Properly handle a failure to collect against a server
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaulson45 committed Oct 4, 2023
1 parent 95ae38f commit 80f78e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Diagnostics/HealthChecker/Features/Get-HealthCheckerData.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ function Get-HealthCheckerData {
} catch {
Write-Red "Failed to Health Checker against $serverName"
$failedServerList.Add($serverName)
# Try to handle the issue so we don't get a false positive report.
Invoke-CatchActions
continue
}

Expand Down

0 comments on commit 80f78e0

Please sign in to comment.