summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2022-02-22 15:52:08 +0000
committerGitHub <noreply@github.com>2022-02-22 15:52:08 +0000
commit6d14b3dabfe38c6ae487d0f663e294056b6cc056 (patch)
tree182efebbc9492966ac19e46da170fbe025498b1e /synapse
parentImplement account status endpoints (MSC3720) (#12001) (diff)
downloadsynapse-6d14b3dabfe38c6ae487d0f663e294056b6cc056.tar.xz
Better error message when failing to request from another process (#12060)
Diffstat (limited to 'synapse')
-rw-r--r--synapse/replication/http/_base.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/replication/http/_base.py b/synapse/replication/http/_base.py
index bc1d28dd19..2e697c74a6 100644
--- a/synapse/replication/http/_base.py
+++ b/synapse/replication/http/_base.py
@@ -268,7 +268,9 @@ class ReplicationEndpoint(metaclass=abc.ABCMeta):
                     raise e.to_synapse_error()
                 except Exception as e:
                     _outgoing_request_counter.labels(cls.NAME, "ERR").inc()
-                    raise SynapseError(502, "Failed to talk to main process") from e
+                    raise SynapseError(
+                        502, f"Failed to talk to {instance_name} process"
+                    ) from e
 
                 _outgoing_request_counter.labels(cls.NAME, 200).inc()
                 return result