Skip to content
Snippets Groups Projects
Unverified Commit 6d14b3da authored by Erik Johnston's avatar Erik Johnston Committed by GitHub
Browse files

Better error message when failing to request from another process (#12060)

parent 250104d3
No related branches found
No related tags found
No related merge requests found
Fix error message when a worker process fails to talk to another worker process.
...@@ -268,7 +268,9 @@ class ReplicationEndpoint(metaclass=abc.ABCMeta): ...@@ -268,7 +268,9 @@ class ReplicationEndpoint(metaclass=abc.ABCMeta):
raise e.to_synapse_error() raise e.to_synapse_error()
except Exception as e: except Exception as e:
_outgoing_request_counter.labels(cls.NAME, "ERR").inc() _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() _outgoing_request_counter.labels(cls.NAME, 200).inc()
return result return result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment