Skip to content

Commit bc02f86

Browse files
Update verifiy-links errorStatusCodes (Azure#49657)
Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
1 parent c7b1d62 commit bc02f86

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

eng/common/scripts/Verify-Links.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
Path to the root of the site for resolving rooted relative links, defaults to host root for http and file directory for local files.
2323
2424
.PARAMETER errorStatusCodes
25-
List of http status codes that count as broken links. Defaults to 400, 404, SocketError.HostNotFound = 11001, SocketError.NoData = 11004.
25+
List of http status codes that count as broken links. Defaults to 400, 404, SocketError.HostNotFound = 11001, SocketError.NoData = 11004, and -131073 (socket error on Linux).
2626
2727
.PARAMETER branchReplaceRegex
2828
Regex to check if the link needs to be replaced. E.g. ^(https://github.com/.*/(?:blob|tree)/)main(/.*)$
@@ -75,7 +75,7 @@ param (
7575
[switch] $recursive = $true,
7676
[string] $baseUrl = "",
7777
[string] $rootUrl = "",
78-
[array] $errorStatusCodes = @(400, 404, 11001, 11004),
78+
[array] $errorStatusCodes = @(400, 404, 11001, 11004, -131073),
7979
[string] $branchReplaceRegex = "",
8080
[string] $branchReplacementName = "",
8181
[bool] $checkLinkGuidance = $false,

0 commit comments

Comments
 (0)