display error message
authorThomasV <thomasv@gitorious>
Sun, 6 May 2012 15:12:01 +0000 (19:12 +0400)
committerThomasV <thomasv@gitorious>
Sun, 6 May 2012 15:12:01 +0000 (19:12 +0400)
backends/abe/__init__.py

index cba7167..1ba8a35 100644 (file)
@@ -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