From 3ad1db8d74a0f3fe547be4aafddd70c49bb8b7dc Mon Sep 17 00:00:00 2001 From: zzz Date: Wed, 27 Jan 2016 16:27:26 +0000 Subject: [PATCH] I2PTunnel: Fix exception message choice that was backwards for router/non-router context --- .../java/src/net/i2p/i2ptunnel/I2PTunnelClientBase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelClientBase.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelClientBase.java index f400352f4..48bbca328 100644 --- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelClientBase.java +++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelClientBase.java @@ -471,10 +471,10 @@ public abstract class I2PTunnelClientBase extends I2PTunnelTask implements Runna portNum = "7654"; String msg; if (getTunnel().getContext().isRouterContext()) + msg = "Unable to build tunnels for the client"; + else msg = "Unable to connect to the router at " + getTunnel().host + ':' + portNum + " and build tunnels for the client"; - else - msg = "Unable to build tunnels for the client"; if (++retries < MAX_RETRIES) { if (log != null) log.log(msg + ", retrying in " + (RETRY_DELAY / 1000) + " seconds");