From: Jim Procter Date: Thu, 19 Feb 2015 15:20:51 +0000 (+0000) Subject: JAL-653 set the warningMessage for the file source to allow the GUI to report problem... X-Git-Tag: Release_2_10_0~296^2~162 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=78d748602388587364a0070debaaa8984d292b17;p=jalview.git JAL-653 set the warningMessage for the file source to allow the GUI to report problems if necessary. --- diff --git a/src/jalview/io/FeaturesFile.java b/src/jalview/io/FeaturesFile.java index baf9b82..88a8611 100755 --- a/src/jalview/io/FeaturesFile.java +++ b/src/jalview/io/FeaturesFile.java @@ -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();