mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Include url in the markdown-links test error message (#11438)
This commit is contained in:
@@ -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)"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user