From 9693242bcb97efe77f9bad5be68c4984358a0de5 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Mon, 11 Sep 2006 15:28:53 +0000 Subject: [PATCH] Error message if file not found moved for headless state --- src/jalview/bin/Jalview.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java index 2f76347..5bc98b1 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -137,6 +137,7 @@ public class Jalview if(file!=null) { + System.out.println("Opening file: " + file); if (!file.startsWith("http://")) { @@ -155,15 +156,23 @@ public class Jalview protocol = "URL"; } + + if (file.endsWith(".jar")) format = "Jalview"; else format = new jalview.io.IdentifyFile().Identify(file, protocol); - System.out.println("Opening: " + format + " file " + file); + AlignFrame af = fileLoader.LoadFileWaitTillLoaded(file, protocol, format); + if(af==null) + { + System.out.println("error"); + return; + } + data = aparser.getValue("colour"); if(data!=null) { -- 1.7.10.2