git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49685e6
)
Throw exception for unknown protocols in case of carbon-unit error
author
jprocter
<Jim Procter>
Thu, 28 Aug 2008 11:09:37 +0000
(11:09 +0000)
committer
jprocter
<Jim Procter>
Thu, 28 Aug 2008 11:09:37 +0000
(11:09 +0000)
src/jalview/io/FileParse.java
patch
|
blob
|
history
diff --git
a/src/jalview/io/FileParse.java
b/src/jalview/io/FileParse.java
index
cb3b122
..
cd59a55
100755
(executable)
--- 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);