This commit is contained in:
James Barnsley
2017-04-06 18:13:27 +12:00
parent 27272dcd0f
commit e143f0e71a

View File

@ -91,13 +91,15 @@ class WebsocketHandler(tornado.websocket.WebSocketHandler):
mem.iris.send_message(self.connection_id, response) mem.iris.send_message(self.connection_id, response)
else: else:
response = { response = {
'error': 'Method "'+message['method']+'" does not exist', 'status': 0,
'message': 'Method "'+message['method']+'" does not exist',
'request_id': request_id 'request_id': request_id
} }
mem.iris.send_message(self.connection_id, response) mem.iris.send_message(self.connection_id, response)
else: else:
response = { response = {
'error': 'Method key missing from request', 'status': 0,
'message': 'Method key missing from request',
'request_id': request_id 'request_id': request_id
} }
mem.iris.send_message(self.connection_id, response) mem.iris.send_message(self.connection_id, response)