src/hg/phyloGif/phyloGif.c 1.21
1.21 2009/06/24 03:26:11 galt
making more senseful error messages
Index: src/hg/phyloGif/phyloGif.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/phyloGif/phyloGif.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -b -B -U 4 -r1.20 -r1.21
--- src/hg/phyloGif/phyloGif.c 24 Jun 2009 02:19:23 -0000 1.20
+++ src/hg/phyloGif/phyloGif.c 24 Jun 2009 03:26:11 -0000 1.21
@@ -619,10 +619,11 @@
printf("\r\n");
puts("<html><head><title>PhyloTree parse error</title></head><body><pre>");
/* we dont think the specific error message coming back are correct or useful
* so supply a generic err msg */
- errMsg = cloneString("syntax error.");
- printf("input tree: [%s]\n\n%s",cgiString("phyloGif_tree"),errMsg);
+ printf("Original input tree:\n[%s]\n\n",cgiString("phyloGif_tree"));
+ printf("Input tree as passed to parser:\n[%s]\n\n",phyloData);
+ printf("Parser syntax error:\n%s",errMsg);
puts("</pre></body></html>");
}
else
{