df10c2a997dd6578f49113d97109816d9eaaee03 chmalee Wed Apr 24 10:04:24 2019 -0700 Adding checks for hub and genome description pages and fixing incorrect error message when composite/superTracks have no children, refs #18870 diff --git src/hg/hgHubConnect/hgHubConnect.c src/hg/hgHubConnect/hgHubConnect.c index 842be4d..7c52faa 100644 --- src/hg/hgHubConnect/hgHubConnect.c +++ src/hg/hgHubConnect/hgHubConnect.c @@ -377,48 +377,50 @@ puts(""); } printf("\n"); printf(""); } int doCheckTrackDb(struct dyString *errors, struct trackHub *hub, struct trackHubGenome *genome) /* Attempt to open a trackDb from a hub and report errors back. * Eventually will check every stanza and not die if there's an error with the first one*/ { int errorCount = 0; struct trackDb *tdb = NULL, *tdbList = NULL; struct errCatch *errCatch = errCatchNew(); -struct errCatch *trackFileCatch = errCatchNew(); if (errCatchStart(errCatch)) { tdbList = trackHubTracksForGenome(hub, genome); + tdbList = trackDbLinkUpGenerations(tdbList); + tdbList = trackDbPolishAfterLinkup(tdbList, genome->name); + trackHubPolishTrackNames(genome->trackHub, tdbList); for (tdb = tdbList; tdb != NULL; tdb = tdb->next) { - dyStringPrintf(errors, ""); } } errCatchEnd(errCatch); if (errCatch->gotError) { errorCount += 1; dyStringPrintf(errors, "\n", errCatch->message->string); } errCatchFree(&errCatch); return errorCount; }