From 6d434722cc2c4a5b5dfe3ba9570b55eabed83a1f Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Thu, 24 Jun 2021 12:41:32 +0200 Subject: [PATCH] fix prev commit --- src/main/java/com/sparrowwallet/sparrow/net/ElectrumServer.java | 2 +- .../sparrow/preferences/ServerPreferencesController.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/net/ElectrumServer.java b/src/main/java/com/sparrowwallet/sparrow/net/ElectrumServer.java index 8f0eb00f..fbc21942 100644 --- a/src/main/java/com/sparrowwallet/sparrow/net/ElectrumServer.java +++ b/src/main/java/com/sparrowwallet/sparrow/net/ElectrumServer.java @@ -945,7 +945,7 @@ public class ElectrumServer { } } - throw new ServerException("Check if Bitcoin Core is running in server mode, and the authentication details are correct.\n\nSee https://sparrowwallet.com/docs/connect-node.html"); + throw new ServerException("Check if Bitcoin Core is running, and the authentication details are correct."); } } catch(InterruptedException e) { Thread.currentThread().interrupt(); diff --git a/src/main/java/com/sparrowwallet/sparrow/preferences/ServerPreferencesController.java b/src/main/java/com/sparrowwallet/sparrow/preferences/ServerPreferencesController.java index 476873b6..d2b43f32 100644 --- a/src/main/java/com/sparrowwallet/sparrow/preferences/ServerPreferencesController.java +++ b/src/main/java/com/sparrowwallet/sparrow/preferences/ServerPreferencesController.java @@ -573,6 +573,8 @@ public class ServerPreferencesController extends PreferencesDetailController { reason += ". Check if the proxy server is running."; } else if(exception instanceof TorServerAlreadyBoundException) { reason += "\nIs a Tor proxy already running on port " + TorService.PROXY_PORT + "?"; + } else if(reason != null && reason.contains("Check if Bitcoin Core is running")) { + reason += "\n\nSee https://sparrowwallet.com/docs/connect-node.html"; } testResults.setText("Could not connect:\n\n" + reason);