From 46c900f027944d4c19e3aedfb72130cf74b20299 Mon Sep 17 00:00:00 2001 From: Jonathan Warren Date: Wed, 31 Jul 2013 15:38:01 -0400 Subject: [PATCH] show Invalid Method error in same format as other API errors --- src/bitmessagemain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bitmessagemain.py b/src/bitmessagemain.py index d3ed53fa..8168fd52 100644 --- a/src/bitmessagemain.py +++ b/src/bitmessagemain.py @@ -695,7 +695,7 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler): elif method == 'clientStatus': return '{ "networkConnections" : "%s" }' % str(len(shared.connectedHostsList)) 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. -- 2.45.1