src/hg/lib/cart.c 1.109
1.109 2009/06/03 04:30:19 markd
don't dumps stacks on find errors; doing stack dump in abort handler rather than warn handler simplifies
Index: src/hg/lib/cart.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/cart.c,v
retrieving revision 1.108
retrieving revision 1.109
diff -b -B -U 4 -r1.108 -r1.109
--- src/hg/lib/cart.c 3 Jun 2009 00:34:09 -0000 1.108
+++ src/hg/lib/cart.c 3 Jun 2009 04:30:19 -0000 1.109
@@ -1239,10 +1239,12 @@
/* Wrap error catcher around call to do middle. */
{
int status = setjmp(htmlRecover);
pushAbortHandler(htmlAbort);
+webDumpStackPushAbortHandler();
if (status == 0)
doMiddle(cart);
+webDumpStackPopAbortHandler();
popAbortHandler();
}
void cartEarlyWarningHandler(char *format, va_list args)
@@ -1262,11 +1264,9 @@
void cartWarnCatcher(void (*doMiddle)(struct cart *cart), struct cart *cart, WarnHandler warner)
/* Wrap error and warning handlers around doMiddle. */
{
pushWarnHandler(warner);
-webPushDumpStackHandler();
cartErrorCatcher(doMiddle, cart);
-webPopDumpStackHandler();
popWarnHandler();
}
static boolean inWeb = FALSE;