Skip to content

Commit 47a9828

Browse files
Explicitly state which external link failed to validate (#612)
1 parent e735986 commit 47a9828

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/main/scala/com/lightbend/paradox/ParadoxProcessor.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,9 @@ class ParadoxProcessor(
243243
.statusMessage()} on external link, location redirected to is [${response.header("Location")}]")
244244
} else if (response.statusCode() != 200) {
245245
close()
246-
reportError(s"Error validating external link, status was ${response.statusCode()} ${response.statusMessage()}")
246+
reportError(
247+
s"Error validating external link ${capturedLink.link}, status was ${response.statusCode()} ${response.statusMessage()}"
248+
)
247249
} else {
248250
if (capturedLink.hasFragments) {
249251
validateFragments(url, response.parse(), capturedLink.fragments, errorContext)

0 commit comments

Comments
 (0)