4e84edcbf2bd31c87f184b2c63c92ad8691638a7 galt Thu Oct 6 01:35:15 2016 -0700 hgGateway needs early warn handlers. htmshell.c needs to also write error to stderr on early errors. diff --git src/hg/hgGateway/hgGateway.c src/hg/hgGateway/hgGateway.c index 57d62a2..ec804c1 100644 --- src/hg/hgGateway/hgGateway.c +++ src/hg/hgGateway/hgGateway.c @@ -808,27 +808,28 @@ for (match = matchList; match != NULL; match = match->next) writeDbDbMatch(jw, match, term, category); // Write out assembly hub matches, if any. writeAssemblyHubMatches(jw, aHubMatchList); jsonWriteListEnd(jw); puts(jw->dy->string); jsonWriteFree(&jw); } int main(int argc, char *argv[]) /* Process CGI / command line. */ { /* Null terminated list of CGI Variables we don't want to save * permanently. */ char *excludeVars[] = {SEARCH_TERM, CARTJSON_COMMAND, NULL,}; +htmlPushEarlyHandlers(); cgiSpoof(&argc, argv); setUdcCacheDir(); if (cgiOptionalString(SEARCH_TERM)) // Skip the cart for speedy searches lookupTerm(); else { oldVars = hashNew(10); cartEmptyShellNoContent(doMiddle, hUserCookie(), excludeVars, oldVars); } return 0; }