Include url in the markdown-links test error message (#11438)

This commit is contained in:
xtqqczze
2020-01-03 10:40:27 -08:00
committed by Andrew
parent ea48e07c48
commit 08d6be9039
+2 -2
View File
@@ -111,10 +111,10 @@ Describe "Verify Markdown Links" {
{
$null = Invoke-WebRequest -uri $url -RetryIntervalSec 10 -MaximumRetryCount 6
}
catch
catch [Microsoft.PowerShell.Commands.HttpResponseException]
{
if ( $allowedFailures -notcontains $_.Exception.Response.StatusCode ) {
throw "retry of URL failed with error: $($_.Exception.Message)"
throw "Failed to complete request to `"$url`". $($_.Exception.Message)"
}
}
}