diff options
author | David Baker <dave@matrix.org> | 2015-01-23 10:28:25 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2015-01-23 10:28:25 +0000 |
commit | bcd48b9636071543fa64e7fb066275d1c9c1e363 (patch) | |
tree | e6db8fb93a3470c627efc0d710e11e872f64db91 /synapse/rest/client/v1/push_rule.py | |
parent | This really serves me right for ever making a map called 'map'. (diff) | |
download | synapse-bcd48b9636071543fa64e7fb066275d1c9c1e363.tar.xz |
Fix adding rules without before/after & add the rule that we couldn't find to the error
Diffstat (limited to 'synapse/rest/client/v1/push_rule.py')
-rw-r--r-- | synapse/rest/client/v1/push_rule.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/client/v1/push_rule.py b/synapse/rest/client/v1/push_rule.py index 7df3fc7f09..77a0772479 100644 --- a/synapse/rest/client/v1/push_rule.py +++ b/synapse/rest/client/v1/push_rule.py @@ -166,8 +166,8 @@ class PushRuleRestServlet(RestServlet): ) except InconsistentRuleException as e: raise SynapseError(400, e.message) - except RuleNotFoundException: - raise SynapseError(400, "before/after rule not found") + except RuleNotFoundException as e: + raise SynapseError(400, e.message) defer.returnValue((200, {})) |