mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Change format of AMP error definitions to better match docs.
This commit is contained in:
parent
433b888422
commit
5bc2a89fbd
1 changed files with 5 additions and 5 deletions
|
|
@ -258,7 +258,7 @@ class MsgPortal2Server(amp.Command):
|
|||
"""
|
||||
key = "MsgPortal2Server"
|
||||
arguments = [('packed_data', Compressed())]
|
||||
errors = [(Exception, 'EXCEPTION')]
|
||||
errors = {Exception: 'EXCEPTION'}
|
||||
response = []
|
||||
|
||||
|
||||
|
|
@ -269,7 +269,7 @@ class MsgServer2Portal(amp.Command):
|
|||
"""
|
||||
key = "MsgServer2Portal"
|
||||
arguments = [('packed_data', Compressed())]
|
||||
errors = [(Exception, 'EXCEPTION')]
|
||||
errors = {Exception: 'EXCEPTION'}
|
||||
response = []
|
||||
|
||||
|
||||
|
|
@ -283,7 +283,7 @@ class AdminPortal2Server(amp.Command):
|
|||
"""
|
||||
key = "AdminPortal2Server"
|
||||
arguments = [('packed_data', Compressed())]
|
||||
errors = [(Exception, 'EXCEPTION')]
|
||||
errors = {Exception: 'EXCEPTION'}
|
||||
response = []
|
||||
|
||||
|
||||
|
|
@ -297,7 +297,7 @@ class AdminServer2Portal(amp.Command):
|
|||
"""
|
||||
key = "AdminServer2Portal"
|
||||
arguments = [('packed_data', Compressed())]
|
||||
errors = [(Exception, 'EXCEPTION')]
|
||||
errors = {Exception: 'EXCEPTION'}
|
||||
response = []
|
||||
|
||||
|
||||
|
|
@ -314,7 +314,7 @@ class FunctionCall(amp.Command):
|
|||
('function', amp.String()),
|
||||
('args', amp.String()),
|
||||
('kwargs', amp.String())]
|
||||
errors = [(Exception, 'EXCEPTION')]
|
||||
errors = {Exception: 'EXCEPTION'}
|
||||
response = [('result', amp.String())]
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue