From: jprocter Date: Thu, 28 Aug 2008 11:09:37 +0000 (+0000) Subject: Throw exception for unknown protocols in case of carbon-unit error X-Git-Tag: Release_2_4_0~16 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=5607f503b2d58aa6181ece57e3d5ceeba9acf22b;p=jalview.git Throw exception for unknown protocols in case of carbon-unit error --- 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);