Skip to content

Commit 08d6be9

Browse files
xtqqczzeAndrew
authored andcommitted
Include url in the markdown-links test error message (#11438)
1 parent ea48e07 commit 08d6be9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/common/markdown/markdown-link.tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ Describe "Verify Markdown Links" {
111111
{
112112
$null = Invoke-WebRequest -uri $url -RetryIntervalSec 10 -MaximumRetryCount 6
113113
}
114-
catch
114+
catch [Microsoft.PowerShell.Commands.HttpResponseException]
115115
{
116116
if ( $allowedFailures -notcontains $_.Exception.Response.StatusCode ) {
117-
throw "retry of URL failed with error: $($_.Exception.Message)"
117+
throw "Failed to complete request to `"$url`". $($_.Exception.Message)"
118118
}
119119
}
120120
}

0 commit comments

Comments
 (0)