c936950dc182181fc0174ffd5f97d92e2a4c268e
gperez2
  Fri Jun 6 16:30:27 2025 -0700
Updating the hubAssemblyHash == NULL error message, refs #35479

diff --git src/hg/lib/trackHub.c src/hg/lib/trackHub.c
index c94873984bd..8d268395b3c 100644
--- src/hg/lib/trackHub.c
+++ src/hg/lib/trackHub.c
@@ -139,31 +139,34 @@
 if (hubAssemblyUndecoratedHash == NULL)
     return NULL;
 
 struct hashEl *hel = hashLookup(hubAssemblyUndecoratedHash, database);
 
 if (hel == NULL)
     return NULL;
 
 return (struct trackHubGenome *)hel->val;
 }
 
 struct trackHubGenome *trackHubGetGenome(char *database)
 /* get genome structure for an assembly in a trackHub */
 {
 if (hubAssemblyHash == NULL)
-    errAbort("requesting hub genome with no hubs loaded");
+    errAbort("An error occurred while adding the custom track. This may be due to a mismatch"
+		    " between the db= parameter and the genome selected at the top of the page."
+		    " If you are having trouble resolving this error please contact us at"
+		    " genome-www@soe.ucsc.edu.");
 
 struct hashEl *hel = hashLookup(hubAssemblyHash, database);
 
 if (hel == NULL)
     return NULL;
 
 return (struct trackHubGenome *)hel->val;
 }
 
 boolean trackHubDatabase(char *database)
 /* Is this an assembly from an Assembly Data hub? */
 {
 if (hubAssemblyHash == NULL)
     return FALSE;