# HG changeset patch # User Carl Byington # Date 1717187700 21600 # Node ID 609c9990c9fb60f823a8410bcbe50a027ba4f480 # Parent 9acc51a5a98f918111e26f5132bbe4f49e28b4ec add more debug code diff -r 9acc51a5a98f -r 609c9990c9fb app/src/main/java/com/five_ten_sg/connectbot/HostListActivity.java --- a/app/src/main/java/com/five_ten_sg/connectbot/HostListActivity.java Fri May 31 13:35:44 2024 -0600 +++ b/app/src/main/java/com/five_ten_sg/connectbot/HostListActivity.java Fri May 31 14:35:00 2024 -0600 @@ -473,11 +473,19 @@ String fn; try { fn = external_dir + accuspeech + con; + Log.d(TAG, "trying to read " + fn); reader = new BufferedReader(new FileReader(fn)); } catch (Exception e) { - fn = download_dir + con; - reader = new BufferedReader(new FileReader(fn)); + try { + fn = download_dir + con; + Log.d(TAG, "trying to read " + fn); + reader = new BufferedReader(new FileReader(fn)); + } + catch (Exception e) { + Log.d(TAG, "cannot read either file"); + return; + } } String line = null; @@ -612,7 +620,7 @@ hostdb.setDefaultColorsForScheme(hostdb.DEFAULT_COLOR_SCHEME, fg, bg); } catch (Exception e) { - Log.d(TAG, "Deployment scan failed."); + Log.d(TAG, e.getMessage() + " Deployment scan failed."); } return launch; }