170c8b999f84fe3dc410fa7569c779627f2fe493
markd
  Thu Feb 27 16:17:32 2025 -0800
replace assert with errAbort to get a message rather than just empty page

diff --git src/hg/hgTables/bigWig.c src/hg/hgTables/bigWig.c
index 87f5d11b9f0..8d973c001c9 100644
--- src/hg/hgTables/bigWig.c
+++ src/hg/hgTables/bigWig.c
@@ -52,31 +52,31 @@
  * otherwise return NULL.  Do a freeMem on returned string when done. */
 {
 char *settingVal = NULL;
 if (isCustomTrack(table))
     {
     struct customTrack *ct = ctLookupName(table);
     if (ct != NULL)
         settingVal = cloneString(trackDbSetting(ct->tdb, settingName));
     }
 else
     {
     struct trackDb *tdb = hashFindVal(fullTableToTdbHash, table);
     assert(tdb != NULL);
     settingVal = cloneString(trackDbSetting(tdb, settingName));
     if (mustBeInHub && isHubTrack(table))   // if it's a native track, we'll assume it has a table with the name
-        assert(settingVal != NULL);
+        errAbort("BUG: hub track '%s' must have setting '%s'", table, settingName);
     }
 return settingVal;
 }
 
 char *bigFileNameFromCtOrHub(char *table, struct sqlConnection *conn)
 /* If table is a custom track or hub track, return the bigDataUrl setting;
  * otherwise return NULL.  Do a freeMem on returned string when done. */
 {
 return settingFromCtOrHub(table, conn, "bigDataUrl", TRUE);
 }
 
 char *bigDataIndexFromCtOrHub(char *table, struct sqlConnection *conn)
 /* If table is a custom track or hub track, return the bigDataIndex setting;
  * otherwise return NULL.  Do a freeMem on returned string when done. */
 {