commit ca8eae919f14f13de7e0a3a35ba544d100d4f5de
parent 0862fdb9a9082f78a78dfb566e46b1428d6f5c26
Author: SomberNight <somber.night@protonmail.com>
Date: Wed, 31 Oct 2018 19:59:07 +0100
daemon: clarify error print
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/electrum/daemon.py b/electrum/daemon.py
@@ -92,7 +92,7 @@ def get_server(config: SimpleConfig) -> Optional[jsonrpclib.Server]:
server.ping()
return server
except Exception as e:
- print_error("[get_server]", e)
+ print_error(f"failed to connect to JSON-RPC server: {e}")
if not create_time or create_time < time.time() - 1.0:
return None
# Sleep a bit and try again; it might have just been started