Skip to content

Commit

Permalink
Include full link when external link is broken
Browse files Browse the repository at this point in the history
  • Loading branch information
howard-e committed Sep 16, 2024
1 parent af8f4c1 commit 71c3ba9
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 71c3ba9

Please sign in to comment.