We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 739301d commit bf79afeCopy full SHA for bf79afe
1 file changed
src/StorageGRID-Webscale.psm1
@@ -5071,6 +5071,10 @@ function Global:Get-SgwVersion {
5071
if ($ResponseBody -match "apiVersion") {
5072
$ApiVersion = ($ResponseBody | ConvertFrom-Json).APIVersion
5073
}
5074
+ elseif ($_.Exception.Message -match "Device not configured") {
5075
+ Write-Warning "Connection failed due to network errors. Please check if you specified the correct hostname and that you can reach the hostname."
5076
+ Throw "$Method to $Uri failed with Exception $( $_.Exception.Message )"
5077
+ }
5078
else {
5079
Write-Warning "Certificate of the server may not be trusted. Use -SkipCertificateCheck switch if you want to skip certificate verification."
5080
Throw "$Method to $Uri failed with Exception $( $_.Exception.Message ) `n $responseBody"
0 commit comments