From 5607f503b2d58aa6181ece57e3d5ceeba9acf22b Mon Sep 17 00:00:00 2001 From: jprocter Date: Thu, 28 Aug 2008 11:09:37 +0000 Subject: [PATCH] Throw exception for unknown protocols in case of carbon-unit error --- src/jalview/io/FileParse.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/jalview/io/FileParse.java b/src/jalview/io/FileParse.java index cb3b122..cd59a55 100755 --- a/src/jalview/io/FileParse.java +++ b/src/jalview/io/FileParse.java @@ -204,7 +204,11 @@ public class FileParse error = true; } } - if (dataIn==null) + else { + errormessage = "PROBABLE IMPLEMENTATION ERROR : Datasource Type given as '"+(type!=null ? type : "null")+"'"; + error=true; + } + if (dataIn==null || error) { // pass up the reason why we have no source to read from throw new IOException("Failed to read data from source:\n"+errormessage); -- 1.7.10.2