From 8e8dc2773f5c2ca0c1e18acec378c3f7b34d7a0e Mon Sep 17 00:00:00 2001 From: Oliver <20188437+olivergrabinski@users.noreply.github.com> Date: Wed, 3 Apr 2024 20:42:05 +0200 Subject: [PATCH] Explicitly state which external link failed to validate --- .../src/main/scala/com/lightbend/paradox/ParadoxProcessor.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/scala/com/lightbend/paradox/ParadoxProcessor.scala b/core/src/main/scala/com/lightbend/paradox/ParadoxProcessor.scala index 2f75bee9..05bb0066 100644 --- a/core/src/main/scala/com/lightbend/paradox/ParadoxProcessor.scala +++ b/core/src/main/scala/com/lightbend/paradox/ParadoxProcessor.scala @@ -243,7 +243,7 @@ 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)