summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2023-07-22 20:01:46 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2023-07-22 22:29:20 +0100
commit8d5ab38584cbda89d67b50b3ba0086df0ebc93e1 (patch)
treef4fea3085b72c16755e695489da864d4d6d75368
parentUse room version, not "hub_server" field when adding/validating "origin" (diff)
downloadsynapse-8d5ab38584cbda89d67b50b3ba0086df0ebc93e1.tar.xz
Print out error from remote homeserver if failed to invite
-rw-r--r--synapse/handlers/federation.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py
index 84ad276ebd..f0f61dbdb0 100644
--- a/synapse/handlers/federation.py
+++ b/synapse/handlers/federation.py
@@ -551,6 +551,9 @@ class FederationHandler:
             )
         except RequestSendFailed:
             raise SynapseError(502, f"Can't connect to server {target_host}")
+        except HttpResponseException as e:
+            logger.error(f"Error sending invite to '{target_host}'", e.response)
+            raise e
 
         return pdu