Inform user of groups error parsing
authoramwaterhouse <Andrew Waterhouse>
Fri, 24 Feb 2006 11:37:35 +0000 (11:37 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 24 Feb 2006 11:37:35 +0000 (11:37 +0000)
src/jalview/appletgui/AlignFrame.java

index 6d70bf7..7b8def3 100755 (executable)
@@ -140,13 +140,14 @@ public class AlignFrame extends Frame implements ActionListener,
 \r
   public void parseFeaturesFile(String file)\r
   {\r
+    String line = null;\r
     try\r
     {\r
       URL url = new URL(file);\r
 \r
       BufferedReader in =  new BufferedReader(new InputStreamReader(url.openStream()));\r
       SequenceI seq = null;\r
-      String line, type, desc, token;\r
+      String type, desc, token;\r
 \r
       int index, start, end;\r
       StringTokenizer st;\r
@@ -228,7 +229,7 @@ public class AlignFrame extends Frame implements ActionListener,
     catch (Exception ex)\r
     {\r
       ex.printStackTrace();\r
-      System.out.println("Error parsing groups file: " + ex);\r
+      System.out.println("Error parsing groups file: " + ex +"\n"+line);\r
     }\r
   }\r
 \r