mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-21 17:15:38 +03:00
Include the destination in the error of 'Destination mismatch' (#17830)
To help debug problems such as https://github.com/element-hq/synapse/issues/17822
This commit is contained in:
parent
69e9b75373
commit
6c51f8649d
2 changed files with 2 additions and 1 deletions
1
changelog.d/17830.misc
Normal file
1
changelog.d/17830.misc
Normal file
|
@ -0,0 +1 @@
|
|||
Include the destination in the error of 'Destination mismatch' on federation requests.
|
|
@ -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 (
|
||||
|
|
Loading…
Reference in a new issue