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:
741b7eb
)
make fileparse errors easier to debug by dumping file parameter contents in debug...
author
jprocter
<Jim Procter>
Fri, 13 Nov 2009 11:22:33 +0000
(11:22 +0000)
committer
jprocter
<Jim Procter>
Fri, 13 Nov 2009 11:22:33 +0000
(11:22 +0000)
src/jalview/bin/JalviewLite.java
patch
|
blob
|
history
diff --git
a/src/jalview/bin/JalviewLite.java
b/src/jalview/bin/JalviewLite.java
index
7329a6f
..
f23cbde
100755
(executable)
--- a/
src/jalview/bin/JalviewLite.java
+++ b/
src/jalview/bin/JalviewLite.java
@@
-672,6
+672,21
@@
public class JalviewLite extends Applet
{
dbgMsg("File load exception.");
ex.printStackTrace();
+ if (debug) {
+ try {
+ FileParse fp = new FileParse(file, protocol);
+ String ln = null;
+ dbgMsg(">>>Dumping contents of '"+file+"' "+"("+protocol+")");
+ while ((ln=fp.nextLine())!=null) {
+ dbgMsg(ln);
+ }
+ dbgMsg(">>>Dump finished.");
+ } catch (Exception e)
+ {
+ System.err.println("Exception when trying to dump the content of the file parameter.");
+ e.printStackTrace();
+ }
+ }
}
if ((al != null) && (al.getHeight() > 0))
{