show Invalid Method error in same format as other API errors #354

Merged
Atheros1 merged 1 commits from master into master 2013-07-31 21:38:41 +02:00
Showing only changes of commit 46c900f027 - Show all commits

View File

@ -695,7 +695,7 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
elif method == 'clientStatus': elif method == 'clientStatus':
return '{ "networkConnections" : "%s" }' % str(len(shared.connectedHostsList)) return '{ "networkConnections" : "%s" }' % str(len(shared.connectedHostsList))
else: else:
return 'Invalid Method: %s' % method return 'API Error 0020: Invalid method: %s' % method
# This thread, of which there is only one, runs the API. # This thread, of which there is only one, runs the API.