src/hg/lib/web.c 1.164
1.164 2009/06/05 08:30:06 markd
don't webEnd if didn't webStart
Index: src/hg/lib/web.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/web.c,v
retrieving revision 1.163
retrieving revision 1.164
diff -b -B -U 4 -r1.163 -r1.164
--- src/hg/lib/web.c 4 Jun 2009 17:53:21 -0000 1.163
+++ src/hg/lib/web.c 5 Jun 2009 08:30:06 -0000 1.164
@@ -597,14 +597,16 @@
void webVaWarn(char *format, va_list args)
/* Warning handler that closes out page and stuff in
* the fancy form. */
{
-if (! webHeadAlreadyOutputed)
+boolean needStart = !webHeadAlreadyOutputed;
+if (needStart)
webStart(errCart, NULL, "Error");
htmlVaWarn(format, args);
printf("\n<!-- HGERROR -->\n");
printf("\n\n");
-webEnd();
+if (needStart)
+ webEnd();
}
void webAbort(char* title, char* format, ...)