mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-27 07:39:23 -05:00
Better error message when failing to request from another process (#12060)
This commit is contained in:
parent
250104d357
commit
6d14b3dabf
1
changelog.d/12060.misc
Normal file
1
changelog.d/12060.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix error message when a worker process fails to talk to another worker process.
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user