From 78d748602388587364a0070debaaa8984d292b17 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 19 Feb 2015 15:20:51 +0000 Subject: [PATCH] JAL-653 set the warningMessage for the file source to allow the GUI to report problems if necessary. --- src/jalview/io/FeaturesFile.java | 3 +++ 1 file changed, 3 insertions(+) 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(); -- 1.7.10.2