mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:56:06 -04:00
Fix adding rules without before/after & add the rule that we couldn't find to the error
This commit is contained in:
parent
6927b6b197
commit
bcd48b9636
2 changed files with 7 additions and 5 deletions
|
@ -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, {}))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue