From: ThomasV Date: Sun, 6 May 2012 15:12:01 +0000 (+0400) Subject: display error message X-Git-Url: https://git.novaco.in/?p=electrum-server.git;a=commitdiff_plain;h=5078c2928f632caed4752401befa5c56f2623e9b display error message --- diff --git a/backends/abe/__init__.py b/backends/abe/__init__.py index cba7167..1ba8a35 100644 --- a/backends/abe/__init__.py +++ b/backends/abe/__init__.py @@ -344,7 +344,8 @@ class AbeStore(Datastore_class): respdata = urllib.urlopen(self.bitcoind_url, postdata).read() r = loads(respdata) if r['error'] != None: - out = "error: transaction rejected by memorypool\n"+tx + msg = r['error'].get('message') + out = "error: transaction rejected by memorypool: " + msg + "\n" + tx else: out = r['result'] return out