4403e216c46d2f99eabd1f05e0e3c3531600b6ef angie Fri Aug 18 16:23:10 2017 -0700 Remind the user which assembly is selected when we can't find a search term. diff --git src/hg/lib/hgFind.c src/hg/lib/hgFind.c index 2a57b4a..2142977 100644 --- src/hg/lib/hgFind.c +++ src/hg/lib/hgFind.c @@ -2502,31 +2502,32 @@ int start = BIGNUM; int end = 0; termCount = chopByChar(cloneString(spec), ';', terms, ArraySize(terms)); multiTerm = (termCount > 1); for (i = 0; i < termCount; i++) { trimSpaces(terms[i]); if (isEmpty(terms[i])) continue; hgp = hgPositionsFind(db, terms[i], "", hgAppName, cart, multiTerm); if (hgp == NULL || hgp->posCount == 0) { hgPositionsFree(&hgp); - warn("Sorry, couldn't locate %s in genome database\n", terms[i]); + warn("Sorry, couldn't locate %s in %s %s\n", terms[i], + trackHubSkipHubName(hOrganism(db)), hFreezeDate(db)); if (multiTerm) hUserAbort("%s not uniquely determined -- " "can't do multi-position search.", terms[i]); *retWinStart = 0; return NULL; } if ((hgp->singlePos != NULL) && (!showAlias || !hgp->useAlias)) { if (chrom != NULL && !sameString(chrom, hgp->singlePos->chrom)) hUserAbort("Sites occur on different chromosomes: %s, %s.", chrom, hgp->singlePos->chrom); chrom = hgp->singlePos->chrom; if (hgp->singlePos->chromStart < start) start = hgp->singlePos->chromStart;