Skip to content

Commit

Permalink
Explicitly state which external link failed to validate (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
olivergrabinski authored Apr 4, 2024
1 parent e735986 commit 47a9828
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ class ParadoxProcessor(
.statusMessage()} on external link, location redirected to is [${response.header("Location")}]")
} else if (response.statusCode() != 200) {
close()
reportError(s"Error validating external link, status was ${response.statusCode()} ${response.statusMessage()}")
reportError(
s"Error validating external link ${capturedLink.link}, status was ${response.statusCode()} ${response.statusMessage()}"
)
} else {
if (capturedLink.hasFragments) {
validateFragments(url, response.parse(), capturedLink.fragments, errorContext)
Expand Down

0 comments on commit 47a9828

Please sign in to comment.