Compare commits

...

2 Commits

Author SHA1 Message Date
Erik Johnston
a83757e502 Newsfile 2024-10-15 10:42:54 +01:00
Erik Johnston
8cab80fc08 Include the destination in the error of 'Destination mismatch' 2024-10-15 10:41:19 +01:00
2 changed files with 2 additions and 1 deletions

1
changelog.d/17830.misc Normal file
View File

@@ -0,0 +1 @@
Include the destination in the error of 'Destination mismatch' on federation requests.

View File

@@ -113,7 +113,7 @@ class Authenticator:
):
raise AuthenticationError(
HTTPStatus.UNAUTHORIZED,
"Destination mismatch in auth header",
f"Destination mismatch in auth header, received: {destination!r}",
Codes.UNAUTHORIZED,
)
if (