electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit ec0f91942da11a6c28c6867a1ea0d8e63d510ca7
parent a5c6a570ae6842704b1fdd416c807dcf56688989
Author: SomberNight <somber.night@protonmail.com>
Date:   Sat, 14 Nov 2020 19:59:59 +0100

daemon: fix local RPC server error messages to conform to jsonrpc spec

fixes #6672

Diffstat:
Melectrum/daemon.py | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/electrum/daemon.py b/electrum/daemon.py @@ -207,7 +207,10 @@ class AuthenticatedServer(Logger): response['result'] = await f(*params) except BaseException as e: self.logger.exception("internal error while executing RPC") - response['error'] = str(e) + response['error'] = { + 'code': 1, + 'message': str(e), + } return web.json_response(response)