Report invalid chars
[jalview.git] / src / jalview / io / PfamFile.java
index ec52bac..8056f38 100755 (executable)
@@ -48,8 +48,7 @@ public class PfamFile
     super.initData();\r
   }\r
 \r
-  public void parse()\r
-      throws IOException\r
+  public void parse() throws IOException\r
   {\r
     int i = 0;\r
     String line;\r
@@ -118,8 +117,9 @@ public class PfamFile
 \r
         if (!isValidProteinSequence(newSeq.getSequence()))\r
         {\r
-          throw new IOException(\r
-              "Not a valid protein sequence - (PFAM input)");\r
+          throw new IOException(AppletFormatAdapter.INVALID_CHARACTERS\r
+                                +" : "+ newSeq.getName()\r
+                                +" : "+invalidCharacter);\r
         }\r
       }\r
       else\r