From 2b5900595bdda80bcb8d4c6b506371217702f8a5 Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Sun, 19 Nov 2017 09:53:17 -0800 Subject: [PATCH] Make our error message about RPC being down as useful as possilbe --- lib/Hush/RPC.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/Hush/RPC.pm b/lib/Hush/RPC.pm index d63609c..464672a 100644 --- a/lib/Hush/RPC.pm +++ b/lib/Hush/RPC.pm @@ -26,9 +26,17 @@ sub new { 8232 => 'ZEC', 18232 => 'TAZ', }; + my $sites = { + "HUSH" => 'https://myhush.org', + "TUSH" => 'https://myhush.org', + "ZEC" => 'https://z.cash', + "TAZ" => 'https://z.cash', + }; my $coin = $coins->{$port} || 'cryptocoin'; + my $site = $sites->{$coin} || 'https://github.com/leto/hushlist'; print "Unable to make RPC connection to $coin full node at $host:$port !\n"; print "Your $coin full node is not running, or not accessible at that port :(\n"; + print "See $site for more information about this privacy coin\n"; exit(1); } }