Fix adding rules without before/after & add the rule that we couldn't find to the error

This commit is contained in:
David Baker 2015-01-23 10:28:25 +00:00
parent 6927b6b197
commit bcd48b9636
2 changed files with 7 additions and 5 deletions

View file

@ -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, {}))