Skip to content

Commit

Permalink
Infrastructure: Include URL of failed links in link checker error mes…
Browse files Browse the repository at this point in the history
…sages (pull #3114)

Co-authored-by: Matt King <[email protected]>
  • Loading branch information
howard-e and mcking65 authored Nov 3, 2024
1 parent ebb4476 commit 3c8b715
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/link-checker.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,9 @@ async function checkLinks() {

if (!pageData.ok) {
consoleError(
`Found broken external link on ${htmlPath}:${lineNumber}:${columnNumber}, ` +
`status was ${pageData.status}`
`Found broken external link on ${htmlPath}:${lineNumber}:${columnNumber}. ` +
`Link is ${hrefOrSrc}, ` +
`status is ${pageData.status}`
);
continue;
}
Expand Down

0 comments on commit 3c8b715

Please sign in to comment.