JAL-653 set the warningMessage for the file source to allow the GUI to report problem...
authorJim Procter <jprocter@dundee.ac.uk>
Thu, 19 Feb 2015 15:20:51 +0000 (15:20 +0000)
committerJames Procter <jprocter@ls30857.local>
Fri, 5 Jun 2015 11:56:47 +0000 (12:56 +0100)
src/jalview/io/FeaturesFile.java

index baf9b82..88a8611 100755 (executable)
@@ -635,6 +635,9 @@ public class FeaturesFile extends AlignFile
       resetMatcher();
     } catch (Exception ex)
     {
+      // should report somewhere useful for UI if necessary
+      warningMessage = ((warningMessage == null) ? "" : warningMessage)
+              + "Parsing error at\n" + line;
       System.out.println("Error parsing feature file: " + ex + "\n" + line);
       ex.printStackTrace(System.err);
       resetMatcher();