42359030b483e8b6b4ec32c743b0fff0b52b3e17
max
  Wed Sep 6 08:20:00 2023 -0700
improving error message when no regions are output in tb, refs #32061

diff --git src/hg/hgTables/bedList.c src/hg/hgTables/bedList.c
index b7ea289..568350a 100644
--- src/hg/hgTables/bedList.c
+++ src/hg/hgTables/bedList.c
@@ -712,31 +712,31 @@
                                 fbPtr->chrom, fbPtr->start, fbPtr->end, fbPtr->name);
                     else
                         hPrintf("%s\t%d\t%d\n",
                                 fbPtr->chrom, fbPtr->start, fbPtr->end);
                     }
                 gotResults = TRUE;
                 }
             featureBitsFreeList(&fbList);
             }
         }
     bedList = NULL;
     lmCleanup(&lm);
     }
 if (!gotResults)
     {
-    hPrintf(NO_RESULTS);
+    explainWhyNoResults(stdout);
     }
 else if (doCt)
     {
     int wigDataSize = 0;
     /* Load existing custom tracks and add this new one: */
     struct customTrack *ctList = getCustomTracks();
     removeNamedCustom(&ctList, ctNew->tdb->table);
     if (doDataPoints)
         {
         if (needSubtrackMerge || isBedGr || isBgWg)
             {
             slReverse(&dataVectorList);
             wigDataSize = dataVectorWriteWigAscii(dataVectorList, ctNew->wigAscii, 0, NULL);
             // TODO: see if can make prettier wig output here that
             // doesn't necessarily have one value per base