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/gffOut.c src/hg/hgTables/gffOut.c
index bdade2d..91df4a1 100644
--- src/hg/hgTables/gffOut.c
+++ src/hg/hgTables/gffOut.c
@@ -436,18 +436,18 @@
 // Process each region
 for (region = regionList; region != NULL; region = region->next)
     {
     if (chromHash && (!hashFindVal(chromHash, region->chrom)))
 	    continue;
     struct lm *lm = lmInit(64*1024);
     int fieldCount;
     bedList = cookedBedList(conn, table, region, lm, &fieldCount);
     // Use exonFrames field if available for better accuracy instead of calculating from coordinates
     if (efIdx != -1) 
 	exonFramesList = getExonFrames(table, conn, bedList);
     itemCount += bedToGffLines(bedList, exonFramesList, hti, fieldCount, source, outputGtf);
     lmCleanup(&lm);
     }
 if (itemCount == 0)
-    hPrintf(NO_RESULTS);
+    explainWhyNoResults(stdout);
 }