fefdc562bc014756f3c22f53dce16126ada37b56
hiram
  Wed Sep 8 11:09:33 2021 -0700
update bad blocks message to read as documentation refs #28131

diff --git src/hg/lib/encode/encodePeak.c src/hg/lib/encode/encodePeak.c
index 85f83c4..1b950aa 100644
--- src/hg/lib/encode/encodePeak.c
+++ src/hg/lib/encode/encodePeak.c
@@ -395,35 +395,31 @@
 		    "not absolute.  Try subtracting chromStart from each offset "
 		    "in blockStarts.");
 	    else
 		lineFileAbort(lf, 
 		    "BED blockStarts[i]+chromStart must be less than chromEnd.");
 	    }
 	}
     if (peak->blockStarts[0] != 0)
 	lineFileAbort(lf, 
 	    "BED blocks must span chromStart to chromEnd.  "
 	    "BED blockStarts[0] must be 0 (==%d) so that (chromStart + "
 	    "blockStarts[0]) equals chromStart.", peak->blockStarts[0]);
     i = peak->blockCount-1;
     if ((peak->chromStart + peak->blockStarts[i] + peak->blockSizes[i]) !=
 	peak->chromEnd)
-	{
-	lineFileAbort(lf, 
-	    "BED blocks must span chromStart to chromEnd.  (chromStart + "
-	    "blockStarts[last] + blockSizes[last]) must equal chromEnd.");
-	}
+	lineFileAbort(lf, BAD_BLOCKS);
     }
 if (pt == gappedPeak)
     /* deal with final three columns of a gappedPeak */
     {
     peak->signalValue = (float)lineFileNeedDouble(lf, row, 12);
     peak->pValue = (float)lineFileNeedDouble(lf, row, 13);
     peak->qValue = (float)lineFileNeedDouble(lf, row, 14);    
     }
 return peak;
 }
 
 void encodePeakOutputWithType(struct encodePeak *el, enum encodePeakType pt, FILE *f)
 /* Print out encodePeak different ways depending on narrowPeak, broadPeak, etc. */
 /* but make it tab-separated. */
 {