comparison app/src/main/java/com/five_ten_sg/connectbot/ConsoleActivity.java @ 484:2043bbaac86e

fix typo in log message
author Carl Byington <carl@five-ten-sg.com>
date Wed, 14 Oct 2020 08:02:07 -0700
parents 105815cce146
children f698820bffdf
comparison
equal deleted inserted replaced
483:84bab82d1f58 484:2043bbaac86e
169 TerminalBridge requestedBridge = bound.getConnectedBridge(requestedNickname); 169 TerminalBridge requestedBridge = bound.getConnectedBridge(requestedNickname);
170 170
171 // If we didn't find the requested connection, try opening it 171 // If we didn't find the requested connection, try opening it
172 if (requestedNickname != null && requestedBridge == null) { 172 if (requestedNickname != null && requestedBridge == null) {
173 try { 173 try {
174 Log.d(TAG, String.format("We couldnt find an existing bridge with URI=%s (nickname=%s), so creating one now", requested.toString(), requestedNickname)); 174 Log.d(TAG, String.format("We could not find an existing bridge with URI=%s (nickname=%s), so creating one now", requested.toString(), requestedNickname));
175 requestedBridge = bound.openConnection(requested); 175 requestedBridge = bound.openConnection(requested);
176 } 176 }
177 catch (Exception e) { 177 catch (Exception e) {
178 Log.e(TAG, "Problem while trying to create new requested bridge from URI", e); 178 Log.e(TAG, "Problem while trying to create new requested bridge from URI", e);
179 } 179 }
1247 1247
1248 synchronized (flip) { 1248 synchronized (flip) {
1249 if (requestedBridge == null) { 1249 if (requestedBridge == null) {
1250 // If we didn't find the requested connection, try opening it 1250 // If we didn't find the requested connection, try opening it
1251 try { 1251 try {
1252 Log.d(TAG, String.format("We couldnt find an existing bridge with URI=%s (nickname=%s)," + 1252 Log.d(TAG, String.format("We could not find an existing bridge with URI=%s (nickname=%s), so creating one now", requested.toString(), requested.getFragment()));
1253 "so creating one now", requested.toString(), requested.getFragment()));
1254 requestedBridge = bound.openConnection(requested); 1253 requestedBridge = bound.openConnection(requested);
1255 } 1254 }
1256 catch (Exception e) { 1255 catch (Exception e) {
1257 Log.e(TAG, "Problem while trying to create new requested bridge from URI", e); 1256 Log.e(TAG, "Problem while trying to create new requested bridge from URI", e);
1258 // TODO: We should display an error dialog here. 1257 // TODO: We should display an error dialog here.