Merge pull request #354 from Atheros1/master
show Invalid Method error in same format as other API errors
This commit is contained in:
commit
192b35e04f
|
@ -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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user