0f2b15b55316a468c710d89d7078ac6aa95a2bc8
angie
  Mon Jun 24 09:02:45 2013 -0700
Fixing problems with the way hgTables and hgVai handled failed position searches.fixes #10964, refs #6152

diff --git src/hg/lib/hgFind.c src/hg/lib/hgFind.c
index 22112ec..11f6432 100644
--- src/hg/lib/hgFind.c
+++ src/hg/lib/hgFind.c
@@ -2553,31 +2553,31 @@
 		 FALSE, "hgTracks");
 }
 
 struct hgPositions *findGenomePosWeb(char *db, char *spec, char **retChromName, 
 	int *retWinStart, int *retWinEnd, struct cart *cart,
 	boolean useWeb, char *hgAppName)
 /* Search for positions in genome that match user query.   
  * Use the web library to print out HTML headers if necessary, and use 
  * hgAppName when forming URLs (instead of "hgTracks").  
  * Return an hgp if the query results in a unique position.  
  * Otherwise display list of positions, put # of positions in retWinStart,
  * and return NULL. */
 {
 struct hgPositions *hgp;
 if (useWeb)
-    webPushErrHandlers();
+    webPushErrHandlersCart(cart);
 hgp = genomePos(db, spec, retChromName, retWinStart, retWinEnd, cart, TRUE,
 		useWeb, hgAppName);
 if (useWeb)
     webPopErrHandlers();
 return hgp;
 }
 
 #if 0 /* not used */
 static void noRelative(boolean relativeFlag, int relStart, int relEnd,
 		       char *table)
 {
 if (relativeFlag)
     hUserAbort("Sorry, range spec (\":%d-%d\") is not supported for %s.",
 	     relStart+1, relEnd, table);