Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Use SynapseError 504 for Timeout errors #731

Merged
merged 1 commit into from
Apr 15, 2016
Merged

Conversation

erikjohnston
Copy link
Member

No description provided.

@@ -80,7 +81,7 @@ def time_bound_deferred(self, given_deferred, time_out):

def timed_out_fn():
try:
ret_deferred.errback(RuntimeError("Timed out"))
ret_deferred.errback(SynapseError(504, "Timed out"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be worth chucking an errcode of "M_TIMEDOUT" or something?

@NegativeMjark
Copy link
Contributor

Otherthan maybe returning an errcode LGTM.

@erikjohnston erikjohnston merged commit 737aee9 into develop Apr 15, 2016
@richvdh richvdh deleted the erikj/timed_otu branch December 1, 2016 14:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants