aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenny Root <kenny@the-b.org>2008-11-24 12:58:28 +0000
committerKenny Root <kenny@the-b.org>2008-11-24 12:58:28 +0000
commitfeb5ffaccc031ae308aec1fc1cb7c924c998895d (patch)
tree953a5a7526a337097617ee425d4103af8955ea10 /src
parent37ca73ff486060433469d99954954dfc8a628a90 (diff)
downloadconnectbot-feb5ffaccc031ae308aec1fc1cb7c924c998895d.tar.gz
connectbot-feb5ffaccc031ae308aec1fc1cb7c924c998895d.tar.bz2
connectbot-feb5ffaccc031ae308aec1fc1cb7c924c998895d.zip
Display the reason a connection couldn't be made if connection fails before authentication.
Diffstat (limited to 'src')
-rw-r--r--src/org/connectbot/service/TerminalBridge.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/org/connectbot/service/TerminalBridge.java b/src/org/connectbot/service/TerminalBridge.java
index 41d80d3..dd95cac 100644
--- a/src/org/connectbot/service/TerminalBridge.java
+++ b/src/org/connectbot/service/TerminalBridge.java
@@ -293,8 +293,10 @@ public class TerminalBridge implements VDUDisplay, OnKeyListener, InteractiveCal
connection.connect(new HostKeyVerifier());
} catch (IOException e) {
Log.e(TAG, "Problem in SSH connection thread during authentication", e);
- // TODO report cause to user:
- Log.d(TAG, String.format("Cause is: %s", e.getCause().toString()));
+
+ // Display the reason in the text.
+ outputLine(e.getCause().getMessage());
+
dispatchDisconnect(false);
return;
}