659466c5ddb04bd727c33da6a1ae40139bc351e4
cline
  Fri Oct 7 14:02:55 2011 -0700
In response to Redmine MLQ #5583 and a request from Brooke, reworded the error message to indicate that the problem may be that a sequence not found doesn't exist anymore (which is probably the case), to make it look less like a software bug (which it probably isn't)
diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c
index 2cf8cb4..3c7619b 100644
--- src/hg/hgc/hgc.c
+++ src/hg/hgc/hgc.c
@@ -10318,31 +10318,31 @@
 char query[256];
 char *sqlRnaName = rnaName;
 struct refLink *rl;
 char *rgdId;
 int start = cartInt(cart, "o");
 
 /* Make sure to escape single quotes for DB parseability */
 if (strchr(rnaName, '\''))
     sqlRnaName = replaceChars(rnaName, "'", "''");
 
 cartWebStart(cart, database, "%s", tdb->longLabel);
 
 safef(query, sizeof(query), "select * from refLink where mrnaAcc = '%s'", sqlRnaName);
 sr = sqlGetResult(conn, query);
 if ((row = sqlNextRow(sr)) == NULL)
-    errAbort("Couldn't find %s in refLink table - database inconsistency.", rnaName);
+    errAbort("Couldn't find %s in refLink table - this accession may no longer be available.", rnaName);
 rl = refLinkLoad(row);
 sqlFreeResult(&sr);
 printf("<H2>Gene %s</H2>\n", rl->name);
 
 safef(query, sizeof(query), "select id from rgdGeneLink where refSeq = '%s'", sqlRnaName);
 
 sr = sqlGetResult(conn, query);
 if ((row = sqlNextRow(sr)) == NULL)
     errAbort("Couldn't find %s in rgdGeneLink table - database inconsistency.", rnaName);
 rgdId = cloneString(row[0]);
 sqlFreeResult(&sr);
 
 printf("<B>RGD Gene Report: </B> <A HREF=\"");
 printf("%s%s", tdb->url, rgdId);
 printf("\" TARGET=_blank>RGD:%s</A><BR>", rgdId);